/*! * \file v12.cpp * \brief v1 and v2 part of the exercise. * * \author * Christos Choutouridis AEM:8997 * */ #include #include #include namespace v12 { /*! * A naive triangle counting algorithm * \param A The adjacency matrix * \return The number of triangles */ int triang_count (matrix& A) { int count =0; // We use a symmetric matrix so we iterate using the constrain i