Network3gs.shortest_path

Network3gs.shortest_path(start, end)

Find the shortest path between two nodes of the network.

Parameters
  • network (compas.datastructures.Network)

  • start (int)

  • end (int)

Returns

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

Examples

>>>