FormDiagram.leaves

FormDiagram.leaves()[source]

Vertices with degree 1.

Returns

generator – A generator object for iteration over vertex keys that are leaves.