Skip to content

Interaction Graph¤

compas_model.models.interactiongraph ¤

Classes¤

InteractionGraph ¤

InteractionGraph(**kwargs: object)

Class representing the interactions between elements in a model.

Parameters:

  • **kwargs (object, default: {} ) –

    Additional options forwarded to :class:compas.datastructures.Graph.

Notes

The main purpose of this class customisation is to modify the data serialisation behaviour of the graph in the context of element interaction modelling in a model.

Methods:¤
clear_edges ¤
clear_edges() -> None

Clear all the edges and connectivity information of the graph.

node_element ¤
node_element(node: int) -> Element

Get the element associated with the node.

Parameters:

  • node (int) –

    The identifier of the node.

Returns:

  • Element –

    The element associated with the node.