MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / add_pin

Method add_pin

src/core/node.py:734–748  ·  view source on GitHub ↗
(self, name, direction, pin_type_str, pin_category="data")

Source from the content-addressed store, hash-verified

732 self.fit_size_to_content()
733
734 def add_pin(self, name, direction, pin_type_str, pin_category="data"):
735 pin = Pin(self, name, direction, pin_type_str, pin_category)
736 self.pins.append(pin)
737
738 if direction == "input":
739 self.input_pins.append(pin)
740 else:
741 self.output_pins.append(pin)
742
743 if pin_category == "execution":
744 self.execution_pins.append(pin)
745 else:
746 self.data_pins.append(pin)
747
748 return pin
749
750 def add_execution_pin(self, name, direction):
751 """Add an execution pin for flow control."""

Callers 2

add_execution_pinMethod · 0.95
add_data_pinMethod · 0.95

Calls 1

PinClass · 0.85

Tested by

no test coverage detected