MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / edge_to_terminate_node

Method edge_to_terminate_node

masfactory/components/graphs/loop.py:328–336  ·  view source on GitHub ↗

Create an edge from an internal node to terminate node.

(self,
            sender: Node,
            keys: dict[str,dict|str]|None=None)

Source from the content-addressed store, hash-verified

326 self._gate = Gate.CLOSED
327 self._close_out_edges()
328 def edge_to_terminate_node(self,
329 sender: Node,
330 keys: dict[str,dict|str]|None=None):
331 """Create an edge from an internal node to terminate node."""
332 edge = Edge(sender, self._terminate_node, keys)
333 self._edges.append(edge)
334 sender.add_out_edge(edge)
335 self._terminate_node.add_in_edge(edge)
336 return edge
337 def edge_to_controller(self,
338 sender: Node,
339 keys: dict[str,dict|str]|None=None):

Callers 7

buildMethod · 0.95
buildMethod · 0.80
buildMethod · 0.80
_compile_aml_loopFunction · 0.80
_compile_loopFunction · 0.80
connect_loop_controllerFunction · 0.80
_build_graphMethod · 0.80

Calls 3

EdgeClass · 0.90
add_out_edgeMethod · 0.80
add_in_edgeMethod · 0.80

Tested by

no test coverage detected