FormNetwork.
is_leaf
Verify if a node is a leaf.
key (hashable) – The identifier of the node.
bool – True or False.
Notes
A node is a leaf if it has only one neighbor.
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev