Clear all the spatial connection of the nodes in the graph.
(self)
| 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 | """ |
no test coverage detected