How to pass the min network size parameter?


To set the min network size parameter for the exclusion of “island subnetwors” I may either call

GraphHopper gh = new GraphHopperOSM().forServer();
int minNetworkSize = 200;
int minOneWayNetworkSize = 200;
gh.setMinNetworkSize(minNetworkSize, minOneWayNetworkSize);

or replace the last line with

gh.init(new CmdArgs().
		put("prepare.min_network_size", minNetworkSize).
		put("prepare.min_one_way_network_size", minOneWayNetworkSize));

The two are equivalent, right? Is one preferred? The first looks cleaner to me.