diff --git a/include/fullerenes/sparse_matrix.hh b/include/fullerenes/sparse_matrix.hh index 745c155b..d83d21b0 100644 --- a/include/fullerenes/sparse_matrix.hh +++ b/include/fullerenes/sparse_matrix.hh @@ -152,6 +152,7 @@ namespace Views { return true; } + bool is_symmetric() const { for(node_t u=0;u new_id(N); - - int u_new = 0; - for(int u=0; u &sv){ - const int N_naught(N); - for(int u: sv){ - while(neighbours[u].size()){ - const int v = neighbours[u][0]; - remove_edge({u,v}); - } - } +// int u_new = 0; +// for(int u=0; u &sv){ +// const int N_naught(N); +// for(int u: sv){ +// while(neighbours[u].size()){ +// const int v = neighbours[u][0]; +// remove_edge({u,v}); +// } +// } + +// remove_isolated_vertices(); + +// // let's see if the graph remained in a sane state +// // cerr << "N: " << N << endl; +// if(N_naught != sv.size() + N) +// cerr << "removed more vertices than intended" << endl; +// assert(is_connected()); +// } int Graph::arc_ix(node_t u, node_t v) const { - const vector& nu(neighbours[u]); - for(int j=0;j