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
The parsed topology