Parse a network topology from RocketFuel ISP map file.
Parameters : | path : str
|
---|---|
Returns : | topology : DirectedTopology
|
Raises : | ValueError :
|
Notes
The returned topology is always directed. If an undirected topology is desired, convert it using the DirectedTopology.to_undirected() method.
If the topology contains self-loops (links starting and ending in the same node) they are stripped from the topology.
Examples
>>> import fnss
>>> topology = fnss.parse_rocketfuel_isp_map('1221.r0.cch')