Skip to content

faq 105381898

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

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");

Clone this wiki locally