MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / buildTopology

Method buildTopology

limsim/simModel/common/networkBuild.py:638–646  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

636 conn.close()
637
638 def buildTopology(self):
639 for k, v in self.edges.items():
640 fj = self.getJunction(v.from_junction)
641 tj = self.getJunction(v.to_junction)
642 fj.outgoing_edges.add(k)
643 tj.incoming_edges.add(k)
644
645 print('[green bold]Network building finished at {}.[/green bold]'.format(
646 datetime.now().strftime('%H:%M:%S.%f')[:-3]))

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

getJunctionMethod · 0.80

Tested by

no test coverage detected