show(g): | Input graph g | | for all i=0 to g.nE-1 do | print g.edges[i] | end for
Time complexity: O(E)