Scene.to_graph

Scene.to_graph(key_mapper=None)[source]

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.