MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / clear_spatial_connection

Method clear_spatial_connection

KVCOMM/graph/graph.py:156–165  ·  view source on GitHub ↗

Clear all the spatial connection of the nodes in the graph.

(self)

Source from the content-addressed store, hash-verified

154 self.potential_temporal_edges.append([node1_id,node2_id])
155
156 def clear_spatial_connection(self):
157 """
158 Clear all the spatial connection of the nodes in the graph.
159 """
160 for node_id in self.nodes.keys():
161 self.nodes[node_id].spatial_predecessors = []
162 self.nodes[node_id].spatial_successors = []
163 if self.decision_node is not None:
164 self.decision_node.spatial_predecessors = []
165 self.decision_node.spatial_successors = []
166
167 def clear_temporal_connection(self):
168 """

Callers 1

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected