network_shortest_path

compas.datastructures.network_shortest_path(network, start, end)[source]

Find the shortest path between two nodes of the network.

Parameters:
networkcompas.datastructures.Network

A network data structure.

starthashable

The identifier of the start node.

endhashable

The identifier of the end node.

Returns:
list[hashable]

The nodes of the network leading from start to end.