Network.shortest_path

Network.shortest_path(start, end)[source]

Find the shortest path between two nodes of the network.

Parameters
Returns

list of int – The nodes of the network leading from start to end.

Examples

>>>