@@ -104,10 +104,10 @@ def __init__(self, name=None):
104104 self ._tree = ElementTree ()
105105 self ._graph = InteractionGraph ()
106106 self ._graph .update_default_node_attributes (element = None )
107- # type of collision is Collision
107+ # type of collision is bool
108108 # type of modifiers is list[Modifier]
109109 # type of contacts is list[Contacts]
110- self ._graph .update_default_edge_attributes (collision = None , modifiers = None , contacts = None )
110+ self ._graph .update_default_edge_attributes (collision = False , modifiers = None , contacts = None )
111111 # optional
112112 self ._cellnet = None
113113 # computed
@@ -398,11 +398,6 @@ def add_interaction(self, a: Element, b: Element) -> tuple[int, int]:
398398
399399 edge = self ._graph .add_edge (node_a , node_b )
400400
401- # if interaction:
402- # interactions = self.graph.edge_interactions(edge) or []
403- # interactions.append(interaction)
404- # self.graph.edge_attribute(edge, name="interactions", value=interactions)
405-
406401 self ._guid_element [str (b .guid )].is_dirty = True
407402
408403 return edge
@@ -576,16 +571,6 @@ def materials(self) -> Generator[Material, None, None]:
576571 def collisions (self ):
577572 raise NotImplementedError
578573
579- # def interactions(self) -> Generator[Interaction, None, None]:
580- # """Yield all interactions between all elements in the model.
581-
582- # Yields
583- # ------
584- # :class:`Interaction`
585-
586- # """
587- # return self._graph.interactions()
588-
589574 # def elements_connected_by(self, interaction_type: Type[Interaction]) -> list[list[Element]]:
590575 # """Find groups of elements connected by a specific type of interaction.
591576
0 commit comments