Traffic-toolbox Function

Graph2Net - Recovers the net from a graph

Calling Sequence

net=Graph2Net(g,nf)

Parameters

Description

Graph2Net recovers the NetList from a graph-list. In order to distinguish the demands and links arcs, the following color conventions must be satisfied in the graph: - the links arcs must have color 1 (black), - the demands arcs must have the color 6 (cyan).

After saving an edited traffic network (shown with ShowNet) in a scigraph window we get a graph-list that we can transform in a NetList with Graph2Net.

EXAMPLES

See Also