Revision 8e38fed4 util/UnitDiskGraph.py

View differences:

util/UnitDiskGraph.py
16 16
        edges = [e+(1.0,) for e in edges]
17 17
        G = nx.Graph()
18 18
        #pos = {k:points[k] for k in range(0,len(points))}
19
        #code.interact(local=dict(globals(), **locals()))
20
        G.add_nodes_from(range(len(points)))
19 21
        G.add_weighted_edges_from(edges, weight='weight')
20 22
        return G
21 23

  

Also available in: Unified diff