metawards.utils.build_wards_network¶
-
metawards.utils.
build_wards_network
(params: Parameters, profiler: Profiler = None, nthreads: int = 1, max_nodes: int = 16384, max_links: int = 4194304)¶ Creates a network of wards using the information provided in the file specified in parameters.input_files.work.
The format of this should be:
Node_1 Node_2 weight 1-2
Node_3 Node_4 weight 3-4
Node_4 Node_1 weight 4-1
Node_2 Node_1 weight 2-1
…
BE CAREFUL!! Weights may not be symmetric, network is built with asymmetric links