Previous topic

fnss.topologies.topology.od_pairs_from_topology

Next topic

fnss.topologies.topology.write_topology

fnss.topologies.topology.read_topology

read_topology(path, encoding='utf-8')[source]

Read a topology from an XML file and returns either a Topology or a DirectedTopology object

Parameters :

path : str

The path of the topology XML file to parse

encoding : str, optional

The encoding of the file

Returns :

topology: Topology or DirectedTopology :