diff --git a/src_graph/GRAPH_GraphicalFunctions.h b/src_graph/GRAPH_GraphicalFunctions.h index eff94a2..ce94242 100644 --- a/src_graph/GRAPH_GraphicalFunctions.h +++ b/src_graph/GRAPH_GraphicalFunctions.h @@ -291,6 +291,25 @@ template bool IsSimpleGraph(Tgr const &GR) { return true; } +template bool IsSymmetricGraph(Tgr const &GR) { + size_t nbVert = GR.GetNbVert(); + MyMatrix M=ZeroMatrix(nbVert,nbVert); + for (size_t iVert = 0; iVert < nbVert; iVert++) { + std::vector LAdj = GR.Adjacency(iVert); + for (auto & eAdj : LAdj) { + M(iVert, eAdj) = 1; + } + } + for (size_t iVert=0; iVert std::vector> GetEdgeSet(Tgr const &GR) { size_t nbVert = GR.GetNbVert();