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

Method add_predecessor

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

Source from the content-addressed store, hash-verified

71 return self.__class__.__name__
72
73 def add_predecessor(self, operation: 'Node', st='spatial'):
74 if st == 'spatial' and operation not in self.spatial_predecessors:
75 self.spatial_predecessors.append(operation)
76 operation.spatial_successors.append(self)
77 elif st == 'temporal' and operation not in self.temporal_predecessors:
78 self.temporal_predecessors.append(operation)
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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected