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

Method remove_predecessor

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

Source from the content-addressed store, hash-verified

87 operation.temporal_predecessors.append(self)
88
89 def remove_predecessor(self, operation: 'Node', st='spatial'):
90 if st =='spatial' and operation in self.spatial_predecessors:
91 self.spatial_predecessors.remove(operation)
92 operation.spatial_successors.remove(self)
93 elif st =='temporal' and operation in self.temporal_predecessors:
94 self.temporal_predecessors.remove(operation)
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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected