Add edges in PowerGraph

User 2745 | 6/29/2016, 2:18:45 AM

I read two vertices , v1 and v2, from a file which stores a undirected graph, Now I want to know which way is right to add a undirected edges: graph.addedge(v1, v2) OR graph.addedge(v1, v2); graph.add_edge(v2, v1).


User 16 | 7/1/2016, 8:06:47 PM

PowerGraph is deprecated. I suggest using SGraph: