graph detail:
graph.node[id]['pts'] : Numpy(x, n), coordinates of nodes points
graph.node[id]['o']: Numpy(n), centried of the node
graph.edge(id1, id2)['pts']: Numpy(x, n), sequence of the edge point
graph.edge(id1, id2)['weight']: float, length of this edge
The docs give:
Should these be
graph.nodes
andgraph.edges
?also "centried" should be "centroid", I think.
Very useful library, thanks