Suppose I have a graph formed by 3 vertices and 4 lines.
{4 <-> 1, 1 <-> 3, 3 <-> 4, 1 <-> 3}
Let the line numbers be {1,2,3,4}. Now lines 2&4 are parallel lines.
Suppose I have a graph with 5000 vertices and 5500 lines.Assuming there are 300 parallel lines in the graph,how would you identify them along with line numbers?
In other words, how would you identify such parallel lines and its corresponding line numbers in a big graph?
IGWeightedSimpeGraphwill merge parallel edges and sum their weights. $\endgroup$