TimberModel.add_interaction
- TimberModel.add_interaction(a, b, interaction=None)[source]
Add an interaction between two elements of the model.
- Parameters:
- a
Element
The first element.
- b
Element
The second element.
- interaction
Interaction
, optional The interaction object.
- a
- Returns:
- tuple[int, int]
The edge of the interaction graph representing the interaction between the two elements.
- Raises:
- Exception
If one or both of the elements are not in the graph.