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

Method edge_to_controller

masfactory/components/graphs/loop.py:337–345  ·  view source on GitHub ↗

Create a feedback edge from an internal node to controller.

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

Source from the content-addressed store, hash-verified

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):
340 """Create a feedback edge from an internal node to controller."""
341 edge = Edge(sender, self._controller, keys)
342 self._edges.append(edge)
343 sender.add_out_edge(edge)
344 self._controller.add_in_edge(edge)
345 return edge
346 def edge_from_controller(self,
347 receiver: Node,
348 keys: dict[str,dict|str]|None=None):

Callers 15

buildMethod · 0.95
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
_compile_aml_loopFunction · 0.80
_compile_loopFunction · 0.80
connect_loop_controllerFunction · 0.80
mainFunction · 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