Network.is_leaf
-
Network.
is_leaf
(key)[source] Verify if a node is a leaf.
- Parameters
key (hashable) – The identifier of the node.
- Returns
bool – True or False.
Notes
A node is a leaf if it has only one neighbor.
Network.
is_leaf
(key)[source]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