faq 105381898 - matsim-org/matsim-code-examples GitHub Wiki

Initiate network without scenario?

by Andrew A Campbell on 2017-01-08 21:17:39


Is anyone aware of a method to initiate a network directly from the network file instead of using the standard scenario.getNetwork() method? 

Thanks.


Comments: 1


Re: Initiate network without scenario?

by Pieter Fourie on 2017-01-09 02:54:37

Network myNetwork = NetworkUtils.createNetwork();
new MatsimNetworkReader(myNetwork).readFile("network.xml");

⚠️ **GitHub.com Fallback** ⚠️