Graph.leaves

Graph.leaves()[source]

Return all leaves of the network.

Returns

list – A list of node identifiers.