generator.convert_to_graphml

Convert different file formats to graphml.

 
Modules
       
argparse
networkx
sys

 
Functions
       
convertMaxToGraph(netFile)
Takes a file in DIMACS-max format and returns a DiGraph single-source
labeled s, single sink labeled t.
convertMinToGraph(netFile)
Takes a file in DIMACS-min format and returns a DiGraph,
discarding the costs of arcs.
convertRmfToGraph(netFile)
Takes a file in rmf format (special ZIB-max format) and returns a DiGraph,
contains no arc costs.
main(netFile, outputFile)
Takes DIMACS-max or -min, or rmf format and prints a graphml file.
splitLine(s, nr=1)
Strip whitespace characters from s, raises ValueError if s does not
contain nr elements. Return list of elements from s.