In [1]:
edges = [(('LTHW Loop Demand Side Inlet', 'epnode'), 'LTHW Loop Demand Side Inlet Branch Pipe'), ('LTHW Loop Demand Side Inlet Branch Pipe', ('LTHW Loop Demand Side Inlet Branch Pipe Outlet', 'epnode')), (('LTHW Loop Demand Side Bypass Pipe Inlet Node', 'epnode'), 'LTHW Loop Demand Side Bypass Pipe'), ('LTHW Loop Demand Side Bypass Pipe', ('LTHW Loop Demand Side Bypass Pipe Outlet Node', 'epnode')), (('Water Outlet Group Water Inlet Node', 'epnode'), 'Water Outlet Group'), ('Water Outlet Group', ('Water Outlet Group Water Outlet Node', 'epnode')), (('Building:SAPZone2 Water Convector Hot Water Inlet Node', 'epnode'), 'Building:SAPZone2 Water Convector'), ('Building:SAPZone2 Water Convector', ('Building:SAPZone2 Water Convector Hot Water Outlet Node', 'epnode')), (('Building:SAPZone1 Water Convector Hot Water Inlet Node', 'epnode'), 'Building:SAPZone1 Water Convector'), ('Building:SAPZone1 Water Convector', ('Building:SAPZone1 Water Convector Hot Water Outlet Node', 'epnode')), (('LTHW Loop Demand Side Outlet Branch Pipe Inlet', 'epnode'), 'LTHW Loop Demand Side Outlet Branch Pipe'), ('LTHW Loop Demand Side Outlet Branch Pipe', ('LTHW Loop Demand Side Outlet', 'epnode')), (('LTHW Loop Supply Side Inlet', 'epnode'), 'LTHW Loop Supply Pump'), ('LTHW Loop Supply Pump', ('LTHW Loop Supply Pump Water Outlet Node', 'epnode')), (('Auxiliary Water Heater DHW Inlet Node', 'epnode'), 'Auxiliary Water Heater'), ('Auxiliary Water Heater', ('Auxiliary Water Heater DHW Outlet Node', 'epnode')), (('LTHW Loop Supply Side Outlet Branch Pipe Inlet', 'epnode'), 'LTHW Loop Supply Side Outlet Branch Pipe'), ('LTHW Loop Supply Side Outlet Branch Pipe', ('LTHW Loop Supply Side Outlet', 'epnode')), (('Primary HT HW Loop Demand Side Inlet', 'epnode'), 'Primary HT HW Loop Demand Side Inlet Branch Pipe'), ('Primary HT HW Loop Demand Side Inlet Branch Pipe', ('Primary HT HW Loop Demand Side Inlet Branch Pipe Outlet', 'epnode')), (('Primary HT HW Loop Demand Side Bypass Pipe Inlet Node', 'epnode'), 'Primary HT HW Loop Demand Side Bypass Pipe'), ('Primary HT HW Loop Demand Side Bypass Pipe', ('Primary HT HW Loop Demand Side Bypass Pipe Outlet Node', 'epnode')), (('Building:SAPZone1 Water Convector/1/1 Hot Water Inlet Node', 'epnode'), 'Building:SAPZone1 Water Convector/1/1'), ('Building:SAPZone1 Water Convector/1/1', ('Building:SAPZone1 Water Convector/1/1 Hot Water Outlet Node', 'epnode')), (('Auxiliary Water Heater Heating Inlet Node', 'epnode'), 'Auxiliary Water Heater'), ('Auxiliary Water Heater', ('Auxiliary Water Heater Heating Outlet Node', 'epnode')), (('Building:SAPZone2 Water Convector/1/1 Hot Water Inlet Node', 'epnode'), 'Building:SAPZone2 Water Convector/1/1'), ('Building:SAPZone2 Water Convector/1/1', ('Building:SAPZone2 Water Convector/1/1 Hot Water Outlet Node', 'epnode')), (('Primary HT HW Loop Demand Side Outlet Branch Pipe Inlet', 'epnode'), 'Primary HT HW Loop Demand Side Outlet Branch Pipe'), ('Primary HT HW Loop Demand Side Outlet Branch Pipe', ('Primary HT HW Loop Demand Side Outlet', 'epnode')), (('Primary HT HW Loop Supply Side Inlet', 'epnode'), 'Primary HT HW Loop Supply Pump'), ('Primary HT HW Loop Supply Pump', ('Primary HT HW Loop Supply Pump Water Outlet Node', 'epnode')), (('Primary HT HW Loop Supply Side Bypass Pipe Inlet Node', 'epnode'), 'Primary HT HW Loop Supply Side Bypass Pipe'), ('Primary HT HW Loop Supply Side Bypass Pipe', ('Primary HT HW Loop Supply Side Bypass Pipe Outlet Node', 'epnode')), (('Purchased Heat Inlet Node', 'epnode'), 'Purchased Heating'), ('Purchased Heating', ('Purchased Heat Outlet Node', 'epnode')), (('Primary Boiler Water Inlet Node', 'epnode'), 'Primary Boiler'), ('Primary Boiler', ('Primary Boiler Water Outlet Node', 'epnode')), (('Primary HT HW Loop Supply Side Outlet Branch Pipe Inlet', 'epnode'), 'Primary HT HW Loop Supply Side Outlet Branch Pipe'), ('Primary HT HW Loop Supply Side Outlet Branch Pipe', ('Primary HT HW Loop Supply Side Outlet', 'epnode')), (('Secondary Boiler Water Inlet Node', 'epnode'), 'Secondary Boiler'), ('Secondary Boiler', ('Secondary Boiler Water Outlet Node', 'epnode')), (('LTHW Loop Demand Side Inlet Branch Pipe Outlet', 'epnode'), 'LTHW Loop Demand Splitter'), ('LTHW Loop Demand Splitter', ('LTHW Loop Demand Side Bypass Pipe Inlet Node', 'epnode')), ('LTHW Loop Demand Splitter', ('Water Outlet Group Water Inlet Node', 'epnode')), ('LTHW Loop Demand Splitter', ('Building:SAPZone2 Water Convector Hot Water Inlet Node', 'epnode')), ('LTHW Loop Demand Splitter', ('Building:SAPZone1 Water Convector Hot Water Inlet Node', 'epnode')), (('LTHW Loop Supply Pump Water Outlet Node', 'epnode'), 'LTHW Loop Supply Splitter'), ('LTHW Loop Supply Splitter', ('Auxiliary Water Heater DHW Inlet Node', 'epnode')), (('Primary HT HW Loop Demand Side Inlet Branch Pipe Outlet', 'epnode'), 'Primary HT HW Loop Demand Splitter'), ('Primary HT HW Loop Demand Splitter', ('Primary HT HW Loop Demand Side Bypass Pipe Inlet Node', 'epnode')), ('Primary HT HW Loop Demand Splitter', ('Building:SAPZone1 Water Convector/1/1 Hot Water Inlet Node', 'epnode')), ('Primary HT HW Loop Demand Splitter', ('Auxiliary Water Heater Heating Inlet Node', 'epnode')), ('Primary HT HW Loop Demand Splitter', ('Building:SAPZone2 Water Convector/1/1 Hot Water Inlet Node', 'epnode')), (('Primary HT HW Loop Supply Pump Water Outlet Node', 'epnode'), 'Primary HT HW Loop Supply Splitter'), ('Primary HT HW Loop Supply Splitter', ('Primary HT HW Loop Supply Side Bypass Pipe Inlet Node', 'epnode')), ('Primary HT HW Loop Supply Splitter', ('Purchased Heat Inlet Node', 'epnode')), ('Primary HT HW Loop Supply Splitter', ('Primary Boiler Water Inlet Node', 'epnode')), ('Primary HT HW Loop Supply Splitter', ('Secondary Boiler Water Inlet Node', 'epnode')), ('LTHW Loop Demand Mixer', ('LTHW Loop Demand Side Outlet Branch Pipe Inlet', 'epnode')), (('Water Outlet Group Water Outlet Node', 'epnode'), 'LTHW Loop Demand Mixer'), (('LTHW Loop Demand Side Bypass Pipe Outlet Node', 'epnode'), 'LTHW Loop Demand Mixer'), (('Building:SAPZone2 Water Convector Hot Water Outlet Node', 'epnode'), 'LTHW Loop Demand Mixer'), (('Building:SAPZone1 Water Convector Hot Water Outlet Node', 'epnode'), 'LTHW Loop Demand Mixer'), ('LTHW Loop Supply Mixer', ('LTHW Loop Supply Side Outlet Branch Pipe Inlet', 'epnode')), (('Auxiliary Water Heater DHW Outlet Node', 'epnode'), 'LTHW Loop Supply Mixer'), ('Primary HT HW Loop Demand Mixer', ('Primary HT HW Loop Demand Side Outlet Branch Pipe Inlet', 'epnode')), (('Primary HT HW Loop Demand Side Bypass Pipe Outlet Node', 'epnode'), 'Primary HT HW Loop Demand Mixer'), (('Building:SAPZone1 Water Convector/1/1 Hot Water Outlet Node', 'epnode'), 'Primary HT HW Loop Demand Mixer'), (('Auxiliary Water Heater Heating Outlet Node', 'epnode'), 'Primary HT HW Loop Demand Mixer'), (('Building:SAPZone2 Water Convector/1/1 Hot Water Outlet Node', 'epnode'), 'Primary HT HW Loop Demand Mixer'), ('Primary HT HW Loop Supply Mixer', ('Primary HT HW Loop Supply Side Outlet Branch Pipe Inlet', 'epnode')), (('Purchased Heat Outlet Node', 'epnode'), 'Primary HT HW Loop Supply Mixer'), (('Primary Boiler Water Outlet Node', 'epnode'), 'Primary HT HW Loop Supply Mixer'), (('Secondary Boiler Water Outlet Node', 'epnode'), 'Primary HT HW Loop Supply Mixer'), (('Primary HT HW Loop Supply Side Bypass Pipe Outlet Node', 'epnode'), 'Primary HT HW Loop Supply Mixer'), ('Building:SAPZone1', ('Building:SAPZone1 Return Air Node', 'epnode')), ('Building:SAPZone2', ('Building:SAPZone2 Return Outlet', 'epnode')), ('Building:SAPZone1 Water Convector', 'Building:SAPZone1'), ('Building:SAPZone1 Electric Convector', 'Building:SAPZone1'), ('Building:SAPZone1 Water Convector/1/1', 'Building:SAPZone1'), ('Building:SAPZone2 Water Convector', 'Building:SAPZone2'), ('Building:SAPZone2 Electric Convector', 'Building:SAPZone2'), ('Building:SAPZone2 Water Convector/1/1', 'Building:SAPZone2')]

In [ ]:
def replace_colon(s, )