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

Method add_successor

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

Source from the content-addressed store, hash-verified

79 operation.temporal_successors.append(self)
80
81 def add_successor(self, operation: 'Node', st='spatial'):
82 if st =='spatial' and operation not in self.spatial_successors:
83 self.spatial_successors.append(operation)
84 operation.spatial_predecessors.append(self)
85 elif st == 'temporal' and operation not in self.temporal_successors:
86 self.temporal_successors.append(operation)
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:

Calls

no outgoing calls

Tested by

no test coverage detected