Rename connect_nodes to connect and fix minor bug

This commit is contained in:
Marek Wolan
2023-08-24 13:03:16 +01:00
parent 78008e3c6e
commit fec44aef53
3 changed files with 4 additions and 3 deletions

View File

@@ -1011,6 +1011,7 @@ class Switch(Node):
self.switch_ports = {i: SwitchPort() for i in range(1, self.num_ports + 1)}
for port_num, port in self.switch_ports.items():
port.connected_node = self
port.parent = self
port.port_num = port_num
def show(self):