Message408535
The documentation for graphlib encourages users to represent their graphs in a awkward format.
Graphs are currently represented using dictionaries of nodes, for example:
graph["end_node"] = ["start_node"]
And this is unintuitive because you can't use the graph traverse edges in their forward direction.
If you look up a node in the graph, you get all of the nodes that point to the key,
as opposed to all of the nodes that the key points to.
The solution is to rewrite the documentation such that all of the edge directions are reversed.
The final topologically sorted list will be in the "opposite" direction as a consequence.
This will cause no functional changes. |
|
Date |
User |
Action |
Args |
2021-12-14 15:20:03 | dam1784 | set | recipients:
+ dam1784, docs@python |
2021-12-14 15:20:03 | dam1784 | set | messageid: <1639495203.77.0.753963192728.issue46071@roundup.psfhosted.org> |
2021-12-14 15:20:03 | dam1784 | link | issue46071 messages |
2021-12-14 15:20:03 | dam1784 | create | |
|