Utility class providing graph I/O in various exchange formats. More...
#include <ogdf/fileformats/GraphIO.h>
Classes | |
| class | SVGSettings |
| Condensed settings for drawing SVGs. More... | |
Public Types | |
| using | AttrReaderFunc = bool(*)(GraphAttributes &, Graph &, istream &) |
| Type of simple graph attributes reader functions working on streams. More... | |
| using | AttrWriterFunc = bool(*)(const GraphAttributes &, ostream &) |
| Type of simple graph attributes writer functions working on streams. More... | |
| using | ReaderFunc = bool(*)(Graph &, istream &) |
| Type of simple graph reader functions working on streams. More... | |
| using | WriterFunc = bool(*)(const Graph &, ostream &) |
| Type of simple graph writer functions working on streams. More... | |
Static Public Member Functions | |
Graphs | |
These functions read and write graphs (instances of type Graph) in various graph formats. | |
| static bool | read (Graph &G, const string &filename, ReaderFunc reader=GraphIO::read) |
| Reads arbitrary format from a file specified by name. More... | |
| static bool | write (const Graph &G, const string &filename, WriterFunc writer) |
| Writes arbitrary format to a file specified by name. More... | |
| static bool | read (Graph &G, istream &is) |
Reads graph G of arbitrary graph format from filename. More... | |
| static bool | read (GraphAttributes &GA, Graph &G, const string &filename, AttrReaderFunc reader) |
| Reads arbitrary format from a file specified by name. More... | |
| static bool | write (const GraphAttributes &GA, const string &filename, AttrWriterFunc writer) |
| Writes arbitrary format to a file specified by name. More... | |
GML | |
Graph Modelling Language: https://en.wikipedia.org/wiki/Graph_Modelling_Language | |
| static bool | readGML (Graph &G, const string &filename) |
Reads graph G in GML format from file filename. More... | |
| static bool | readGML (Graph &G, istream &is) |
Reads graph G in GML format from input stream is. More... | |
| static bool | writeGML (const Graph &G, const string &filename) |
Writes graph G in GML format to file filename. More... | |
| static bool | writeGML (const Graph &G, ostream &os) |
Writes graph G in GML format to output stream os. More... | |
| static bool | readGML (ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) in GML format from file filename. More... | |
| static bool | readGML (ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) in GML format from input stream is. More... | |
| static bool | writeGML (const ClusterGraph &C, const string &filename) |
Writes clustered graph C in GML format to file filename. More... | |
| static bool | writeGML (const ClusterGraph &C, ostream &os) |
Writes clustered graph C in GML format to output stream os. More... | |
| static bool | readGML (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) with attributes A in GML format from file filename. More... | |
| static bool | readGML (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) with attributes A in GML format from input stream is. More... | |
| static bool | writeGML (const ClusterGraphAttributes &A, const string &filename) |
Writes graph with attributes A in GML format to file filename. More... | |
| static bool | writeGML (const ClusterGraphAttributes &A, ostream &os) |
Writes graph with attributes A in GML format to output stream os. More... | |
| static bool | readGML (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with attributes A in GML format from file filename. More... | |
| static bool | readGML (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with attributes A in GML format from input stream is. More... | |
| static bool | writeGML (const GraphAttributes &A, const string &filename) |
Writes graph with attributes A in GML format to file filename. More... | |
| static bool | writeGML (const GraphAttributes &A, ostream &os) |
Writes graph with attributes A in GML format to output stream os. More... | |
OGML | |
Open Graph Markup Language: http://www.ogdf.net/lib/exe/fetch.php/documentation.pdf | |
| static bool | readOGML (Graph &G, const string &filename) |
Reads graph G in OGML format from file filename. More... | |
| static bool | readOGML (Graph &G, istream &is) |
Reads graph G in OGML format from input stream is. More... | |
| static bool | writeOGML (const Graph &G, const string &filename) |
Writes graph G in OGML format to file filename. More... | |
| static bool | writeOGML (const Graph &G, ostream &os) |
Writes graph G in OGML format to output stream os. More... | |
| static bool | readOGML (ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) in OGML format from file filename. More... | |
| static bool | readOGML (ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) in OGML format from input stream is. More... | |
| static bool | writeOGML (const ClusterGraph &C, const string &filename) |
Writes clustered graph C in OGML format to file filename. More... | |
| static bool | writeOGML (const ClusterGraph &C, ostream &os) |
Writes clustered graph C in OGML format to output stream os. More... | |
| static bool | readOGML (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with attributes A in OGML format from file filename. More... | |
| static bool | readOGML (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with attributes A in OGML format from input stream is. More... | |
| static bool | writeOGML (const GraphAttributes &A, const string &filename) |
Writes graph with attributes A in OGML format to file filename. More... | |
| static bool | writeOGML (const GraphAttributes &A, ostream &os) |
Writes graph with attributes A in OGML format to output stream os. More... | |
| static bool | readOGML (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) with attributes A in OGML format from file filename. More... | |
| static bool | readOGML (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) with attributes A in OGML format from input stream is. More... | |
| static bool | writeOGML (const ClusterGraphAttributes &A, const string &filename) |
Writes graph with attributes A in OGML format to file filename. More... | |
| static bool | writeOGML (const ClusterGraphAttributes &A, ostream &os) |
Writes graph with attributes A in OGML format to output stream os. More... | |
Rome | |
Rome-Lib format: http://www.graphdrawing.org/data/ | |
| static bool | readRome (Graph &G, const string &filename) |
Reads graph G in Rome-Lib format from file filename. More... | |
| static bool | readRome (Graph &G, istream &is) |
Reads graph G in Rome-Lib format from input stream is. More... | |
| static bool | writeRome (const Graph &G, const string &filename) |
Writes graph G in Rome-Lib format to file filename. More... | |
| static bool | writeRome (const Graph &G, ostream &os) |
Writes graph G in Rome-Lib format to output stream os. More... | |
LEDA | |
LEDA Native File Format for Graphs: http://www.algorithmic-solutions.info/leda_guide/graphs/leda_native_graph_fileformat.html | |
| static bool | readLEDA (Graph &G, const string &filename) |
Reads graph G in LEDA graph format from file filename. More... | |
| static bool | readLEDA (Graph &G, istream &is) |
Reads graph G in LEDA graph format from input stream is. More... | |
| static bool | writeLEDA (const Graph &G, const string &filename) |
Writes graph G in LEDA graph format to file filename. More... | |
| static bool | writeLEDA (const Graph &G, ostream &os) |
Writes graph G in LEDA graph format to output stream os. More... | |
Chaco | |
| static bool | readChaco (Graph &G, const string &filename) |
Reads graph G in Chaco format from file filename. More... | |
| static bool | readChaco (Graph &G, istream &is) |
Reads graph G in Chaco format from input stream is. More... | |
| static bool | writeChaco (const Graph &G, const string &filename) |
Writes graph G in Chaco format to file filename. More... | |
| static bool | writeChaco (const Graph &G, ostream &os) |
Writes graph G in Chaco format to output stream os. More... | |
PMDissGraph | |
Graph file format from [Petra Mutzel, The maximum planar subgraph problem, PhD Thesis, Köln University, 1994] | |
| static bool | readPMDissGraph (Graph &G, const string &filename) |
Reads graph G in a simple format as used in Petra Mutzel's thesis from file filename. More... | |
| static bool | readPMDissGraph (Graph &G, istream &is) |
Reads graph G in a simple format as used in Petra Mutzel's thesis from input stream is. More... | |
| static bool | writePMDissGraph (const Graph &G, const string &filename) |
Writes graph G in a simple format as used in Petra Mutzel's thesis to file filename. More... | |
| static bool | writePMDissGraph (const Graph &G, ostream &os) |
Writes graph G in a simple format as used in Petra Mutzel's thesis to output stream os. More... | |
YGraph | |
| static bool | readYGraph (Graph &G, const string &filename) |
Reads graph G in Y-graph format from file filename. More... | |
| static bool | readYGraph (Graph &G, istream &is) |
Reads graph G in Y-graph format from input stream is. More... | |
Graph6 | |
| static bool | readGraph6 (Graph &G, const string &filename) |
Reads graph G in Graph6 format from file filename. More... | |
| static bool | readGraph6 (Graph &G, istream &is) |
Reads graph G in Graph6 format from input stream is. More... | |
| static bool | writeGraph6 (const Graph &G, const string &filename) |
Writes graph G in Graph6 format to file filename. More... | |
| static bool | writeGraph6 (const Graph &G, ostream &os) |
Writes graph G in Graph6 format to output stream os. More... | |
MatrixMarket | |
| static bool | readMatrixMarket (Graph &G, istream &inStream) |
Reads graph G in Matrix Market exchange format from stream inStream. More... | |
| static bool | readMatrixMarket (Graph &G, const string &filename) |
Reads graph G in Matrix Market exchange format from a file with the given filename. More... | |
Rudy | |
| static bool | readRudy (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with edge weights stored in A in Rudy format from file filename. More... | |
| static bool | readRudy (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with edge weights stored in A in Rudy format from input stream is. More... | |
| static bool | writeRudy (const GraphAttributes &A, const string &filename) |
Writes graph with edge weights stored in A in Rudy format to file filename. More... | |
| static bool | writeRudy (const GraphAttributes &A, ostream &os) |
Writes graph with edge weights stored in A in Rudy format to output stream os. More... | |
BENCH | |
| static bool | readBENCH (Graph &G, List< node > &hypernodes, List< edge > *shell, const string &filename) |
Reads a hypergraph (as point-based expansion) in BENCH format from file filename. More... | |
| static bool | readBENCH (Graph &G, List< node > &hypernodes, List< edge > *shell, istream &is) |
Reads a hypergraph (as point-based expansion) in BENCH format from input stream is. More... | |
PLA | |
| static bool | readPLA (Graph &G, List< node > &hypernodes, List< edge > *shell, const string &filename) |
Reads a hypergraph (as point-based expansion) in PLA format from file filename. More... | |
| static bool | readPLA (Graph &G, List< node > &hypernodes, List< edge > *shell, istream &is) |
Reads a hypergraph (as point-based expansion) in PLA format from input stream is. More... | |
GD-Challenge | |
Graph Drawing Challenge: Area Minimization for Orthogonal Grid Layouts http://graphdrawing.de/contest2013/challenge.html | |
| static bool | readChallengeGraph (Graph &G, GridLayout &gl, const string &filename) |
Reads graph G with grid layout gl in GD-Challenge-format from file filename. More... | |
| static bool | readChallengeGraph (Graph &G, GridLayout &gl, istream &is) |
Reads graph G with grid layout gl in GD-Challenge-format from input stream is. More... | |
| static bool | writeChallengeGraph (const Graph &G, const GridLayout &gl, const string &filename) |
Writes graph G with grid layout gl in GD-Challenge-format to file filename. More... | |
| static bool | writeChallengeGraph (const Graph &G, const GridLayout &gl, ostream &os) |
Writes graph G with grid layout gl in GD-Challenge-format to output stream os. More... | |
GraphML | |
Graph Markup Language: http://graphml.graphdrawing.org/ | |
| static bool | readGraphML (Graph &G, const string &filename) |
Reads graph G in GraphML format from file filename. More... | |
| static bool | readGraphML (Graph &G, istream &is) |
Reads graph G in GraphML format from input stream is. More... | |
| static bool | readGraphML (ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) in GraphML format from file filename. More... | |
| static bool | readGraphML (ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) in GraphML format from input stream is. More... | |
| static bool | readGraphML (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with attributes A in GraphML format from file filename. More... | |
| static bool | readGraphML (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with attributes A in GraphML format from input stream is. More... | |
| static bool | readGraphML (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) with attributes A in GraphML format from file filename. More... | |
| static bool | readGraphML (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) with attributes A in GraphML format from input stream is. More... | |
| static bool | writeGraphML (const Graph &G, const string &filename) |
Writes graph G in GraphML format to file filename. More... | |
| static bool | writeGraphML (const Graph &G, ostream &os) |
Writes graph G in GraphML format to output stream os. More... | |
| static bool | writeGraphML (const ClusterGraph &C, const string &filename) |
Writes clustered graph C in GraphML format to file filename. More... | |
| static bool | writeGraphML (const ClusterGraph &C, ostream &os) |
Writes clustered graph C in GraphML format to output stream os. More... | |
| static bool | writeGraphML (const GraphAttributes &A, const string &filename) |
Writes graph with attributes A in GraphML format to file filename. More... | |
| static bool | writeGraphML (const GraphAttributes &A, ostream &os) |
Writes graph with attributes A in GraphML format to output stream os. More... | |
| static bool | writeGraphML (const ClusterGraphAttributes &A, const string &filename) |
Writes graph with attributes A in GraphML format to file filename. More... | |
| static bool | writeGraphML (const ClusterGraphAttributes &A, ostream &os) |
Writes graph with attributes A in GraphML format to output stream os. More... | |
DOT | |
| static bool | readDOT (Graph &G, const string &filename) |
Reads graph G in DOT format from file filename. More... | |
| static bool | readDOT (Graph &G, istream &is) |
Reads graph G in DOT format from input stream is. More... | |
| static bool | readDOT (ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) in DOT format from file filename. More... | |
| static bool | readDOT (ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) in DOT format from input stream is. More... | |
| static bool | readDOT (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with attributes A in DOT format from file filename. More... | |
| static bool | readDOT (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with attributes A in DOT format from input stream is. More... | |
| static bool | readDOT (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) with attributes A in DOT format from file filename. More... | |
| static bool | readDOT (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) with attributes A in DOT format from input stream is. More... | |
| static bool | writeDOT (const Graph &G, const string &filename) |
Writes graph G in DOT format to file filename. More... | |
| static bool | writeDOT (const Graph &G, ostream &os) |
Writes graph G in DOT format to output stream os. More... | |
| static bool | writeDOT (const ClusterGraph &C, const string &filename) |
Writes clustered graph C in DOT format to file filename. More... | |
| static bool | writeDOT (const ClusterGraph &C, ostream &os) |
Writes clustered graph C in DOT format to output stream os. More... | |
| static bool | writeDOT (const GraphAttributes &A, const string &filename) |
Writes graph with attributes A in DOT format to file filename. More... | |
| static bool | writeDOT (const GraphAttributes &A, ostream &os) |
Writes graph with attributes A in DOT format to output stream os. More... | |
| static bool | writeDOT (const ClusterGraphAttributes &A, const string &filename) |
Writes graph with attributes A in DOT format to file filename. More... | |
| static bool | writeDOT (const ClusterGraphAttributes &A, ostream &os) |
Writes graph with attributes A in DOT format to output stream os. More... | |
GEXF | |
Graph Exchange XML Format: https://gephi.org/gexf/format/ | |
| static bool | readGEXF (Graph &G, const string &filename) |
Reads graph G in GEXF format from file filename. More... | |
| static bool | readGEXF (Graph &G, istream &is) |
Reads graph G in GEXF format from input stream is. More... | |
| static bool | readGEXF (ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) in GEXF format from file filename. More... | |
| static bool | readGEXF (ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) in GEXF format from input stream is. More... | |
| static bool | readGEXF (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with attributes A in GEXF format from file filename. More... | |
| static bool | readGEXF (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with attributes A in GEXF format from input stream is. More... | |
| static bool | readGEXF (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) with attributes A in GEXF format from file filename. More... | |
| static bool | readGEXF (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) with attributes A in GEXF format from input stream is. More... | |
| static bool | writeGEXF (const Graph &G, const string &filename) |
Writes graph G in GEXF format to file filename. More... | |
| static bool | writeGEXF (const Graph &G, ostream &os) |
Writes graph G in GEXF format to output stream os. More... | |
| static bool | writeGEXF (const ClusterGraph &C, const string &filename) |
Writes clustered graph C in GEXF format to file filename. More... | |
| static bool | writeGEXF (const ClusterGraph &C, ostream &os) |
Writes clustered graph C in GEXF format to output stream os. More... | |
| static bool | writeGEXF (const GraphAttributes &A, const string &filename) |
Writes graph with attributes A in GEXF format to file filename. More... | |
| static bool | writeGEXF (const GraphAttributes &A, ostream &os) |
Writes graph with attributes A in GEXF format to output stream os. More... | |
| static bool | writeGEXF (const ClusterGraphAttributes &A, const string &filename) |
Writes graph with attributes A in GEXF format to file filename. More... | |
| static bool | writeGEXF (const ClusterGraphAttributes &A, ostream &os) |
Writes graph with attributes A in GEXF format to output stream os. More... | |
GDF | |
GUESS Database File: http://graphexploration.cond.org/manual.html | |
| static bool | readGDF (Graph &G, const string &filename) |
Reads graph G in GDF format from file filename. More... | |
| static bool | readGDF (Graph &G, istream &is) |
Reads graph G in GDF format from input stream is. More... | |
| static bool | readGDF (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with attributes A in GDF format from file filename. More... | |
| static bool | readGDF (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with attributes A in GDF format from input stream is. More... | |
| static bool | writeGDF (const Graph &G, const string &filename) |
Writes graph G in GDF format to file filename. More... | |
| static bool | writeGDF (const Graph &G, ostream &os) |
Writes graph G in GDF format to output stream os. More... | |
| static bool | writeGDF (const GraphAttributes &A, const string &filename) |
Writes graph with attributes A in GDF format to file filename. More... | |
| static bool | writeGDF (const GraphAttributes &A, ostream &os) |
Writes graph with attributes A in GDF format to output stream os. More... | |
TLP | |
Tulip software graph format: http://tulip.labri.fr/TulipDrupal/?q=tlp-file-format | |
| static bool | readTLP (Graph &G, const string &filename) |
Reads graph G in TLP format from file filename. More... | |
| static bool | readTLP (Graph &G, istream &is) |
Reads graph G in TLP format from input stream is. More... | |
| static bool | readTLP (ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) in TLP format from file filename. More... | |
| static bool | readTLP (ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) in TLP format from input stream is. More... | |
| static bool | readTLP (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with attributes A in TLP format from file filename. More... | |
| static bool | readTLP (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with attributes A in TLP format from input stream is. More... | |
| static bool | readTLP (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename) |
Reads clustered graph (C, G) with attributes A in TLP format from file filename. More... | |
| static bool | readTLP (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) |
Reads clustered graph (C, G) with attributes A in TLP format from input stream is. More... | |
| static bool | writeTLP (const Graph &G, const string &filename) |
Writes graph G in TLP format to file filename. More... | |
| static bool | writeTLP (const Graph &G, ostream &os) |
Writes graph G in TLP format to output stream os. More... | |
| static bool | writeTLP (const ClusterGraph &C, const string &filename) |
Writes clustered graph C in TLP format to file filename. More... | |
| static bool | writeTLP (const ClusterGraph &C, ostream &os) |
Writes clustered graph C in TLP format to output stream os. More... | |
| static bool | writeTLP (const GraphAttributes &A, const string &filename) |
Writes graph with attributes A in TLP format to file filename. More... | |
| static bool | writeTLP (const GraphAttributes &A, ostream &os) |
Writes graph with attributes A in TLP format to output stream os. More... | |
| static bool | writeTLP (const ClusterGraphAttributes &A, const string &filename) |
Writes graph with attributes A in TLP format to file filename. More... | |
| static bool | writeTLP (const ClusterGraphAttributes &A, ostream &os) |
Writes graph with attributes A in TLP format to output stream os. More... | |
DL | |
UCINET DL format: https://sites.google.com/site/ucinetsoftware/document/ucinethelp.htm | |
| static bool | readDL (Graph &G, const string &filename) |
Reads graph G in DL format from file filename. More... | |
| static bool | readDL (Graph &G, istream &is) |
Reads graph G in DL format from input stream is. More... | |
| static bool | readDL (GraphAttributes &A, Graph &G, const string &filename) |
Reads graph G with attributes A in DL format from file filename. More... | |
| static bool | readDL (GraphAttributes &A, Graph &G, istream &is) |
Reads graph G with attributes A in DL format from input stream is. More... | |
| static bool | writeDL (const Graph &G, const string &filename) |
Writes graph G in DL format to file filename. More... | |
| static bool | writeDL (const Graph &G, ostream &os) |
Writes graph G in DL format to output stream os. More... | |
| static bool | writeDL (const GraphAttributes &A, const string &filename) |
Writes graph with attributes A in DL format to file filename. More... | |
| static bool | writeDL (const GraphAttributes &A, ostream &os) |
Writes graph with attributes A in DL format to output stream os. More... | |
STP | |
SteinLib STP Data Format: http://steinlib.zib.de/format.php | |
| static bool | readSTP (Graph &G, istream &is) |
Reads a graph in SteinLib format from istream is. More... | |
| template<typename T > | |
| static bool | readSTP (EdgeWeightedGraph< T > &wG, List< node > &terminals, NodeArray< bool > &isTerminal, const string &filename) |
| Reads a SteinLib instance from file filename and converts it into a weighted graph wG and a set of terminal nodes terminals. More... | |
| template<typename T > | |
| static bool | readSTP (EdgeWeightedGraph< T > &wG, List< node > &terminals, NodeArray< bool > &isTerminal, istream &is) |
Reads a SteinLib instance from an inputstream is and converts it into a weighted graph wG and a set of terminal nodes terminals. More... | |
| template<typename T > | |
| static bool | writeSTP (const EdgeWeightedGraph< T > &wG, const List< node > &terminals, const string &filename, const string &comments="") |
| Writes an Steiner problem instance to an STP file. More... | |
| template<typename T > | |
| static bool | writeSTP (const EdgeWeightedGraph< T > &wG, const List< node > &terminals, ostream &os, const string &comments="") |
| Writes an Steiner problem instance to an STP file. More... | |
DMF | |
DIMACS Max Flow Challenge: ftp://dimacs.rutgers.edu/pub/netflow/ | |
| template<typename T > | |
| static bool | readDMF (Graph &graph, EdgeArray< T > &weights, node &source, node &sink, const string &filename) |
| Reads a maximum flow instance in DIMACS format. More... | |
| template<typename T > | |
| static bool | readDMF (Graph &graph, EdgeArray< T > &weights, node &source, node &sink, istream &is) |
| Reads a maximum flow instance in DIMACS format. More... | |
| template<typename T > | |
| static bool | writeDMF (const Graph &graph, const EdgeArray< T > &weights, const node source, const node sink, const string &filename) |
| Writes a maximum flow problem instance to a DIMACS maximum flow file. More... | |
| template<typename T > | |
| static bool | writeDMF (const Graph &graph, const EdgeArray< T > &weights, const node source, const node sink, ostream &os) |
| Writes a maximum flow problem instance to a DIMACS maximum flow file. More... | |
Graphs with subgraph | |
These functions read and write graphs in a simple text-based file format that also specifies a subgraph (given as a list of edges). | |
| static bool | readEdgeListSubgraph (Graph &G, List< edge > &delEdges, const string &filename) |
Reads graph G with subgraph defined by delEdges from file filename. More... | |
| static bool | readEdgeListSubgraph (Graph &G, List< edge > &delEdges, istream &is) |
Reads graph G with subgraph defined by delEdges from stream is. More... | |
| static bool | writeEdgeListSubgraph (const Graph &G, const List< edge > &delEdges, const string &filename) |
Writes graph G with subgraph defined by delEdges to file filename. More... | |
| static bool | writeEdgeListSubgraph (const Graph &G, const List< edge > &delEdges, ostream &os) |
Writes graph G with subgraph defined by delEdges to stream os. More... | |
Graphics formats | |
These functions draw graphs and export them as SVG (Scalable Vector Graphics) vectors graphics. | |
| static bool | drawSVG (const GraphAttributes &A, const string &filename, const SVGSettings &settings=svgSettings) |
| static bool | drawSVG (const GraphAttributes &A, ostream &os, const SVGSettings &settings) |
| static bool | drawSVG (const GraphAttributes &A, ostream &os) |
| static bool | drawSVG (const ClusterGraphAttributes &A, const string &filename, const SVGSettings &settings=svgSettings) |
| static bool | drawSVG (const ClusterGraphAttributes &A, ostream &os, const SVGSettings &settings) |
| static bool | drawSVG (const ClusterGraphAttributes &A, ostream &os) |
Utility functions for indentation | |
Text based write methods that use indentation for better readability of the produced text files apply a customizable indentation character and indentation width. | |
| static char | indentChar () |
| Returns the currently used indentation character. More... | |
| static int | indentWidth () |
| Returns the currently used indentation width. More... | |
| static void | setIndentChar (char c) |
Sets the indentation character to c. More... | |
| static void | setIndentWidth (int w) |
Sets the indentation width to w. More... | |
| static ostream & | indent (ostream &os, int depth) |
Prints indentation for indentation depth to output stream os and returns os. More... | |
Other utility functions | |
| static bool | setColorValue (int value, std::function< void(uint8_t)> setFunction) |
| Set a color value (R/G/B/A) based on an integer. Checks if the value is in the right range. More... | |
Static Public Attributes | |
| static Logger | logger |
| static SVGSettings | svgSettings |
Static Private Attributes | |
| static char | s_indentChar |
| Character used for indentation. More... | |
| static int | s_indentWidth |
| Number of indent characters used for indentation. More... | |
Utility class providing graph I/O in various exchange formats.
| using ogdf::GraphIO::AttrReaderFunc = bool (*)(GraphAttributes&, Graph&, istream&) |
| using ogdf::GraphIO::AttrWriterFunc = bool (*)(const GraphAttributes&, ostream&) |
| using ogdf::GraphIO::ReaderFunc = bool (*)(Graph&, istream&) |
| using ogdf::GraphIO::WriterFunc = bool (*)(const Graph&, ostream&) |
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
|
inlinestatic |
|
static |
Prints indentation for indentation depth to output stream os and returns os.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Reads arbitrary format from a file specified by name.
| G | graph to be read. |
| filename | name of the file to read from. |
| reader | format to be used (e.g. readGML), use read(Graph &G, istream &is) for automated detection |
|
static |
Reads graph G of arbitrary graph format from filename.
The following file formats are currently supported:
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
inlinestatic |
|
static |
Reads a hypergraph (as point-based expansion) in BENCH format from file filename.
A hypergraph in OGDF is represented by its point-based expansion, i.e., for each hyperedge h we have a corresponding hypernode n. All nodes originally incident to h are incident to n, i.e., have regular edges to n.
| G | is assigned the read graph (point-based expansion of the hypergraph). |
| hypernodes | is assigned the list of nodes which have to be interpreted as hypernodes. |
| shell | if 0 only the BENCH-hypergraph is read. Otherwise we extend the graph by a simple edge e=(i,o) and two hyperedges: one hyperedges groups all input nodes and i together, the other hyperedge groups all output edges and o. These additional edges are then also collocated in shell. |
| filename | is the name of the file to be read. |
|
static |
Reads a hypergraph (as point-based expansion) in BENCH format from input stream is.
A hypergraph in OGDF is represented by its point-based expansion, i.e., for each hyperedge h we have a corresponding hypernode n. All nodes originally incident to h are incident to n, i.e., have regular edges to n.
| G | is assigned the read graph (point-based expansion of the hypergraph). |
| hypernodes | is assigned the list of nodes which have to be interpreted as hypernodes. |
| shell | if 0 only the BENCH-hypergraph is read. Otherwise we extend the graph by a simple edge e=(i,o) and two hyperedges: one hyperedges groups all input nodes and i together, the other hyperedge groups all output edges and o. These additional edges are then also collocated in shell. |
| is | is the input stream to be read. |
|
static |
Reads graph G in Chaco format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in Chaco format from input stream is.
This simple graph format is used by graph partitioning tools like Chaco, Metis, or Jostle. Its specification is described in the Jostle User Guide.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G with grid layout gl in GD-Challenge-format from file filename.
G is the graph associated with grid layout gl. | G | is assigned the read graph. |
| gl | is assigned the grid layout. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with grid layout gl in GD-Challenge-format from input stream is.
G is the graph associated with grid layout gl. | G | is assigned the read graph. |
| gl | is assigned the grid layout. |
| is | is the input stream from which the graph is read. |
|
static |
Reads graph G in DL format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in DL format from input stream is.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G with attributes A in DL format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with attributes A in DL format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
inlinestatic |
Reads a maximum flow instance in DIMACS format.
| graph | will contain the parsed graph |
| weights | will contain the weights of the edges |
| source | will contain the flow source |
| sink | will contain the flow sink |
| filename | name of the file to be read |
true iff the instances was parsed successfully
|
inlinestatic |
Reads a maximum flow instance in DIMACS format.
| graph | will contain the parsed graph |
| weights | will contain the weights of the edges |
| source | will contain the flow source |
| sink | will contain the flow sink |
| is | input stream |
true iff the instances was parsed successfully
|
static |
Reads graph G in DOT format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in DOT format from input stream is.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) in DOT format from file filename.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) in DOT format from input stream is.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G with attributes A in DOT format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with attributes A in DOT format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in DOT format from file filename.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in DOT format from input stream is.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G with subgraph defined by delEdges from file filename.
| G | is assigned the read graph. |
| delEdges | is assigned the edges of the subgraph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with subgraph defined by delEdges from stream is.
| G | is assigned the read graph. |
| delEdges | is assigned the edges of the subgraph. |
| is | is the input stream from which the graph is read. |
|
static |
Reads graph G in GDF format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in GDF format from input stream is.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G with attributes A in GDF format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with attributes A in GDF format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G in GEXF format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in GEXF format from input stream is.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) in GEXF format from file filename.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) in GEXF format from input stream is.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G with attributes A in GEXF format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with attributes A in GEXF format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in GEXF format from file filename.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in GEXF format from input stream is.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G in GML format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in GML format from input stream is.
The GML (Graph Modelling Language) file format is an Ascii-based format that has been developed by Michael Himsolt at the University of Passau. Its full specification can be found in this technical report.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) in GML format from file filename.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) in GML format from input stream is.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in GML format from file filename.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in GML format from input stream is.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G with attributes A in GML format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with attributes A in GML format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G in Graph6 format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in Graph6 format from input stream is.
The Graph6 format represents an (preferable dense or small) simple undirected graph as a string containing printable characters between 0x3F and 0x7E. See the specification for more information.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G in GraphML format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in GraphML format from input stream is.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) in GraphML format from file filename.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) in GraphML format from input stream is.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G with attributes A in GraphML format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with attributes A in GraphML format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in GraphML format from file filename.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in GraphML format from input stream is.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G in LEDA graph format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in LEDA graph format from input stream is.
The LEDA graph format is a simple, Ascii-based file format used by the LEDA library. Its specification is described in the LEDA Guide.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G in Matrix Market exchange format from stream inStream.
| G | is assigned the read graph. |
| inStream | is the input stream to read from |
|
static |
Reads graph G in Matrix Market exchange format from a file with the given filename.
| G | is assigned the read graph. |
| filename | is the path to the input file to read from |
|
static |
Reads graph G in OGML format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in OGML format from input stream is.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) in OGML format from file filename.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) in OGML format from input stream is.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G with attributes A in OGML format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with attributes A in OGML format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in OGML format from file filename.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in OGML format from input stream is.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads a hypergraph (as point-based expansion) in PLA format from file filename.
| G | is assigned the read graph (point-based expansion of the hypergraph). |
| hypernodes | is assigned the list of nodes which have to be interpreted as hypernodes. |
| shell | if 0 only the PLA-hypergraph is read. Otherwise we extend the graph by a simple edge e=(i,o) and two hyperedges: one hyperedges groups all input nodes and i together, the other hyperedge groups all output edges and o. These additional edges are then also collocated in shell. |
| filename | is the name of the file to be read. |
|
static |
Reads a hypergraph (as point-based expansion) in PLA format from input stream is.
A hypergraph in OGDF is represented by its point-based expansion, i.e., for each hyperedge h we have a corresponding hypernode n. All nodes originally incident to h are incident to n, i.e., have regular edges to n.
| G | is assigned the read graph (point-based expansion of the hypergraph). |
| hypernodes | is assigned the list of nodes which have to be interpreted as hypernodes. |
| shell | if 0 only the PLA-hypergraph is read. Otherwise we extend the graph by a simple edge e=(i,o) and two hyperedges: one hyperedges groups all input nodes and i together, the other hyperedge groups all output edges and o. These additional edges are then also collocated in shell. |
| is | is the input stream to be read. |
|
static |
Reads graph G in a simple format as used in Petra Mutzel's thesis from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in a simple format as used in Petra Mutzel's thesis from input stream is.
This simple graph format has a leading line stating the name of the graph and a following line stating the size of the graph:
*BEGIN unknown_name.numN.numE *GRAPH numN numE UNDIRECTED UNWEIGHTED
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G in Rome-Lib format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in Rome-Lib format from input stream is.
The Rome-Lib format contains n "node-lines", 1 "separator-line", m "edge-lines" (in this order). These lines are as follows (whereby all IDs are integer numbers):
0#-sign0 SourceNodeId TargetNodeId| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads graph G with edge weights stored in A in Rudy format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes (only edge weights (as doubles) are used). |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with edge weights stored in A in Rudy format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes (only edge weights (as doubles) are used). |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
inlinestatic |
Reads a graph in SteinLib format from istream is.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
inlinestatic |
Reads a SteinLib instance from file filename and converts it into a weighted graph wG and a set of terminal nodes terminals.
| wG | the edge weighteed graph |
| terminals | will contain a list of all terminals in the graph |
| isTerminal | maps whether each node is a terminal or a Steiner node |
| filename | the name of the file to be read |
|
inlinestatic |
Reads a SteinLib instance from an inputstream is and converts it into a weighted graph wG and a set of terminal nodes terminals.
| wG | the edge weighteed graph |
| terminals | will contain a list of all terminals in the graph |
| isTerminal | maps whether each node is a terminal or a Steiner node |
| is | the input stream to be read |
|
static |
Reads graph G in TLP format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in TLP format from input stream is.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) in TLP format from file filename.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) in TLP format from input stream is.
G is the graph associated with clustered graph C. | C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G with attributes A in TLP format from file filename.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G with attributes A in TLP format from input stream is.
G is the graph associated with attributes A. | A | is assigned the graph's attributes. |
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in TLP format from file filename.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| filename | is the name of the file to be read. |
|
static |
Reads clustered graph (C, G) with attributes A in TLP format from input stream is.
C is the clustered graph associated with attributes A, and G is the graph associated with C. | A | is assigned the graph's attributes. |
| C | is assigned the read clustered graph (cluster structure). |
| G | is assigned the read clustered graph (graph structure). |
| is | is the input stream to be read. |
|
static |
Reads graph G in Y-graph format from file filename.
| G | is assigned the read graph. |
| filename | is the name of the file to be read. |
|
static |
Reads graph G in Y-graph format from input stream is.
This format is e.g. produced by NAUTY (http://www.cs.sunysb.edu/~algorith/implement/nauty/implement.shtml).
Details on the format, as given in NAUTYs graph generator (see above link): "[A] graph occupies one line with a terminating newline. Except for the newline, each byte has the format 01xxxxxx, where each "x" represents one bit of data.
First byte: xxxxxx is the number of vertices n
Other ceiling(n(n-1)/12) bytes: These contain the upper triangle of the adjacency matrix in column major order. That is, the entries appear in the order (0,1),(0,2),(1,2),(0,3),(1,3),(2,3),(0,4),... . The bits are used in left to right order within each byte. Any unused bits on the end are set to zero.
| G | is assigned the read graph. |
| is | is the input stream to be read. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Writes graph G in Chaco format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in Chaco format to output stream os.
This simple graph format is used by graph partitioning tools like Chaco, Metis, or Jostle. Its specification is described in the Jostle User Guide.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph G with grid layout gl in GD-Challenge-format to file filename.
G is the graph associated with grid layout gl. | G | is the graph to be written. |
| gl | specifies the grid layout of G to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes graph G with grid layout gl in GD-Challenge-format to output stream os.
G is the graph associated with grid layout gl. | G | is the graph to be written. |
| gl | specifies the grid layout of G to be written. |
| os | is the output stream to which the graph is written. |
|
static |
Writes graph G in DL format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in DL format to output stream os.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph with attributes A in DL format to file filename.
| A | specifies the graph and its attributes to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with attributes A in DL format to output stream os.
| A | specifies the graph and its attributes to be written. |
| os | is the output stream to which the graph will be written. |
|
inlinestatic |
Writes a maximum flow problem instance to a DIMACS maximum flow file.
| graph | graph to be written |
| weights | will contain the weights of the edges |
| source | source of the maximum flow |
| sink | sink of the maximum flow |
| filename | name of the file to be written to |
true if the write operation succeeded, false otherwise
|
inlinestatic |
Writes a maximum flow problem instance to a DIMACS maximum flow file.
| graph | graph to be written |
| weights | will contain the weights of the edges |
| source | source of the maximum flow |
| sink | sink of the maximum flow |
| os | the output stream be written to |
true if the write operation succeeded, false otherwise
|
static |
Writes graph G in DOT format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in DOT format to output stream os.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes clustered graph C in DOT format to file filename.
| C | is the clustered graph to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes clustered graph C in DOT format to output stream os.
| C | is the clustered graph to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in DOT format to file filename.
| A | specifies the graph and its attributes to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with attributes A in DOT format to output stream os.
| A | specifies the graph and its attributes to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph with attributes A in DOT format to file filename.
| A | specifies the clustered graph and its attributes to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in DOT format to output stream os.
| A | specifies the clustered graph and its attributes to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph G with subgraph defined by delEdges to file filename.
| G | is the graph to be written. |
| delEdges | specifies the edges of the subgraph to be stored. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G with subgraph defined by delEdges to stream os.
| G | is the graph to be written. |
| delEdges | specifies the edges of the subgraph to be stored. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph G in GDF format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in GDF format to output stream os.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph with attributes A in GDF format to file filename.
| A | specifies the graph and its attributes to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with attributes A in GDF format to output stream os.
| A | specifies the graph and its attributes to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph G in GEXF format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in GEXF format to output stream os.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes clustered graph C in GEXF format to file filename.
| C | is the clustered graph to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes clustered graph C in GEXF format to output stream os.
| C | is the clustered graph to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in GEXF format to file filename.
| A | specifies the graph and its attributes to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with attributes A in GEXF format to output stream os.
| A | specifies the graph and its attributes to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph with attributes A in GEXF format to file filename.
| A | specifies the clustered graph and its attributes to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in GEXF format to output stream os.
| A | specifies the clustered graph and its attributes to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph G in GML format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in GML format to output stream os.
The GML (Graph Modelling Language) file format is an Ascii-based format that has been developed by Michael Himsolt at the University of Passau. Its full specification can be found in this technical report. The GML format stores the basic graph structure, i.e., nodes and edges.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes clustered graph C in GML format to file filename.
| C | is the clustered graph to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes clustered graph C in GML format to output stream os.
| C | is the clustered graph to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in GML format to file filename.
| A | specifies the clustered graph and its attributes to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in GML format to output stream os.
| A | specifies the clustered graph and its attributes to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in GML format to file filename.
| A | specifies the graph and its attributes to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with attributes A in GML format to output stream os.
| A | specifies the graph and its attributes to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph G in Graph6 format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in Graph6 format to output stream os.
The Graph6 format represents an (preferable dense or small) simple undirected graph as a string containing printable characters between 0x3F and 0x7E. See the specification for more information.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph G in GraphML format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in GraphML format to output stream os.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes clustered graph C in GraphML format to file filename.
| C | is the clustered graph to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes clustered graph C in GraphML format to output stream os.
| C | is the clustered graph to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in GraphML format to file filename.
| A | specifies the graph and its attributes to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with attributes A in GraphML format to output stream os.
| A | specifies the graph and its attributes to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph with attributes A in GraphML format to file filename.
| A | specifies the clustered graph and its attributes to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in GraphML format to output stream os.
| A | specifies the clustered graph and its attributes to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph G in LEDA graph format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in LEDA graph format to output stream os.
The LEDA graph format is a simple, Ascii-based file format used by the LEDA library. Its specification is described in the LEDA Guide.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph G in OGML format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in OGML format to output stream os.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes clustered graph C in OGML format to file filename.
| C | is the clustered graph to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes clustered graph C in OGML format to output stream os.
| C | is the clustered graph to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in OGML format to file filename.
| A | specifies the graph and its attributes to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with attributes A in OGML format to output stream os.
| A | specifies the graph and its attributes to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph with attributes A in OGML format to file filename.
| A | specifies the clustered graph and its attributes to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in OGML format to output stream os.
| A | specifies the clustered graph and its attributes to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph G in a simple format as used in Petra Mutzel's thesis to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in a simple format as used in Petra Mutzel's thesis to output stream os.
This simple graph format has a leading line stating the name of the graph and a following line stating the size of the graph:
*BEGIN unknown_name.numN.numE *GRAPH numN numE UNDIRECTED UNWEIGHTED
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph G in Rome-Lib format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in Rome-Lib format to output stream os.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph with edge weights stored in A in Rudy format to file filename.
| A | specifies the graph and its attributes to be written (only edge weights (as doubles) are stored in this format). |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with edge weights stored in A in Rudy format to output stream os.
| A | specifies the graph and its attributes to be written (only edge weights (as doubles) are stored in this format). |
| os | is the output stream to which the graph will be written. |
|
inlinestatic |
Writes an Steiner problem instance to an STP file.
| wG | the edge weighteed graph |
| terminals | a list of all terminals in the graph |
| filename | the file to be written to |
| comments | a string containing all comments seperated by LF if this is an empty string no comment section will be created |
|
inlinestatic |
Writes an Steiner problem instance to an STP file.
| wG | the edge weighteed graph |
| terminals | a list of all terminals in the graph |
| os | the output stream be written to |
| comments | a string containing all comments seperated by LF if this is an empty string no comment section will be created |
|
static |
Writes graph G in TLP format to file filename.
| G | is the graph to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph G in TLP format to output stream os.
| G | is the graph to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes clustered graph C in TLP format to file filename.
| C | is the clustered graph to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes clustered graph C in TLP format to output stream os.
| C | is the clustered graph to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in TLP format to file filename.
| A | specifies the graph and its attributes to be written. |
| filename | is the name of the file to which the graph will be written. |
|
static |
Writes graph with attributes A in TLP format to output stream os.
| A | specifies the graph and its attributes to be written. |
| os | is the output stream to which the graph will be written. |
|
static |
Writes graph with attributes A in TLP format to file filename.
| A | specifies the clustered graph and its attributes to be written. |
| filename | is the name of the file to which the clustered graph will be written. |
|
static |
Writes graph with attributes A in TLP format to output stream os.
| A | specifies the clustered graph and its attributes to be written. |
| os | is the output stream to which the clustered graph will be written. |
|
staticprivate |
|
staticprivate |
|
static |