Network ElementsΒΆ

In this tutorial you will learn how to model a traffic network inside symupy. The main objective is to introduce you to traffic network elements that will be helpful afterwards to describe a traffic system.

[1]:
from symupy.tsc.network import Network
Successful import of symupy
[2]:
network = Network(id='mynet')
network
[2]:
Network(id='mynet', 0 links, 0 nodes)
[3]:
network.add_node('Ext_In')
network.add_node('Ext_Out')
network
[3]:
Network(id='mynet', 0 links, 2 nodes)
[4]:
network.add_link('Zone_001','Ext_In','Ext_Out',0,100)
network
[4]:
Network(id='mynet', 1 links, 2 nodes)
[ ]: