GraphNodeIndex
- class omni.kit.widget.graph.graph_node_index.GraphNodeIndex(model: Optional[GraphModel], port_grouping: bool)
Bases:
object
Hirarchy index of the model. Provides fast access to the nodes and connections.
Methods
__init__
(model, port_grouping)get_diff
(other)Generate the difference object: the list of nodes and connections to add and delete.
mutate
(diff)Apply the difference to the cache index.
- __init__(model: Optional[GraphModel], port_grouping: bool)
- get_diff(other: GraphNodeIndex)
Generate the difference object: the list of nodes and connections to add and delete.
- mutate(diff: Union[GraphNodeIndex, GraphNodeDiff]) Tuple[Set]
Apply the difference to the cache index.