Model.add_interaction
- Model.add_interaction(a, b)
Add an interaction between two elements of the model.
- Parameters:
- a
Element
The first element.
- b
Element
The second element.
- 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.