Previous topic

fnss.traffic.trafficmatrices.link_loads

Next topic

fnss.traffic.trafficmatrices.sin_cyclostationary_traffic_matrix

fnss.traffic.trafficmatrices.read_traffic_matrix

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

Parses a traffic matrix from a traffic matrix XML file. If the XML file contains more than one traffic matrix, it returns a TrafficMatrixSequence object, otherwise a TrafficMatrixObject.

Parameters :

path: str :

The path of the XML file to parse

encoding : str, optional

The encoding of the file

Returns :

tm : TrafficMatrix or TrafficMatrixSequence