python-jgrapht icon indicating copy to clipboard operation
python-jgrapht copied to clipboard

Extracting positions from layout should use vertex number, not index.

Open mapio opened this issue 4 years ago • 0 comments

To convert the output of the layout algorithm to the dictionary mapping vertices to their positions one must use the vertex number, not the vertex index. This is particularly evident if the graph is a masked subgraph, in witch the i-th vertex needs not to be i.

mapio avatar Nov 03 '21 11:11 mapio