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

Method remove_successor

KVCOMM/graph/node.py:97–103  ·  view source on GitHub ↗
(self, operation: 'Node', st='spatial')

Source from the content-addressed store, hash-verified

95 operation.temporal_successors.remove(self)
96
97 def remove_successor(self, operation: 'Node', st='spatial'):
98 if st =='spatial' and operation in self.spatial_successors:
99 self.spatial_successors.remove(operation)
100 operation.spatial_predecessors.remove(self)
101 elif st =='temporal' and operation in self.temporal_successors:
102 self.temporal_successors.remove(operation)
103 operation.temporal_predecessors.remove(self)
104
105 def clear_connections(self):
106 self.spatial_predecessors: List[Node] = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected