Revision b8b54c8f scripts/random_graph_generator.py

View differences:

scripts/random_graph_generator.py
14 14
for i in range(numGraphs):
15 15
    g = nx.fast_gnp_random_graph(numNodes,0.5)
16 16
    if nx.is_connected(g):
17
        nx.write_edgelist(g, prefix+"-"+str(i)+".edges")
17
        for e in g.edges(data=True):
18
            e[2]["weight"] = 1
19
        nx.write_edgelist(g, prefix+"-"+str(i)+".edges", data=["weight"])
18 20

  

Also available in: Unified diff