Graph.leaves

Graph.leaves()[source]

Return all leaves of the network.

Returns

list[hashable] – A list of node identifiers.