BVH.to_graph
- BVH.to_graph(key_mapper=None)
Convert the tree to a graph.
- Parameters:
- key_mappercallable, optional
A callable to map the tree node to a key in the graph. Default is
None
, in which case the index of the node is used.
- Returns:
compas.datastructures.Graph
The graph.