NEmu

Network Emulator for Mobile Universes

Documentation - Topology Description

NEmu provides functions to visualize the topology of the current session:

ExportNemu(dest)

Writes the current configuration of NEmu in the file dest. If dest is None (default), prints the configuration on the standard output.

ImportNemu(dest)

Imports the configuration of the file dest in the current NEmu scope.

HistoryNemu(dest)

Writes the session command line history of NEmu in the file dest. If dest is None (default), prints the history on the standard output.

GraphNemu(dest, type, layout)

This function builds a representation of the session topology in the file dest of type type (png, pdf, etc. Default: dot) with the Graphviz algorithm layout: dot, neato, circo, twopi or fdp (Default: neato).

InitNemu(session='nemu.session.plop')
...
GraphNemu('/tmp/graph.pdf', type='pdf', layout='neato')