Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.23 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.23 KB

python-repetita-parser

A Python parser for the data format of the REPETITA framework. This module can parse topology and demand files either separately or combine them into problem instances. The data can then be accessed via native Python objects.

Usage

A usage example is provided in examples/demand-visualization. To try it, run the following commands:

$ cd examples/demand-visualization
$ python -m venv env && source env/bin/activate
$ pip install -r requirements.txt
$ python demand_visualization.py data/DeutscheTelekom.{graph,0000.demands}

This will parse and visualize some traffic distribution information about the passed REPETITA instance.

Installation

Via pip:

pip install repetita-parser

An AUR package under the name of python-repetita-parser is available as well.

Data Format

REPETITA defines two file formats, one for topology files and another for demand files. These formats are defined in the REPETITA wiki.