Open
Graph Drawing
Framework

 v.2015.05
 

ogdf::GraphIO Class Reference

Utility class providing graph I/O in various exchange formats. More...

#include <ogdf/fileformats/GraphIO.h>

Classes

class  SVGSettings
 

Static Public Member Functions

Graphs

These functions read and write graphs (instances of type Graph) in various graph formats.

static bool readGML (Graph &G, const char *filename)
 Reads graph G in GML format from file filename. More...
 
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 char *filename)
 Writes graph G in GML format to file filename. 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 readOGML (Graph &G, const char *filename)
 Reads graph G in OGML format from file filename. More...
 
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 char *filename)
 Writes graph G in OGML format to file filename. 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 readRome (Graph &G, const char *filename)
 Reads graph G in Rome-Lib format from file filename. More...
 
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 char *filename)
 Writes graph G in Rome-Lib format to file filename. 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...
 
static bool readLEDA (Graph &G, const char *filename)
 Reads graph G in LEDA graph format from file filename. More...
 
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 char *filename)
 Writes graph G in LEDA graph format to file filename. 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...
 
static bool readChaco (Graph &G, const char *filename)
 Reads graph G in Chaco format from file filename. More...
 
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 char *filename)
 Writes graph G in Chaco format to file filename. 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...
 
static bool readPMDissGraph (Graph &G, const char *filename)
 Reads graph G in a simple format as used in Petra Mutzel's thesis from file filename. More...
 
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 char *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, 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...
 
static bool readYGraph (Graph &G, const char *filename)
 Reads graph G in Y-graph format from file filename. More...
 
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...
 
Clustered graphs

These functions read and write clustered graphs (instances of type ClusterGraph) in various graph formats. Read functions take a pair (C, G) as parameters, where G is the graph associated with the clustered graph C.

static bool readGML (ClusterGraph &C, Graph &G, const char *filename)
 Reads clustered graph (C, G) in GML format from file filename. 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 char *filename)
 Writes clustered graph C in GML format to file filename. 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 readOGML (ClusterGraph &C, Graph &G, const char *filename)
 Reads clustered graph (C, G) in OGML format from file filename. 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 char *filename)
 Writes clustered graph C in OGML format to file filename. 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...
 
Graphs with attributes

These functions read and write graphs with additional attributes (instances of type GraphAttributes) in various graph formats. Read functions take a pair (A, G) as parameters, where G is the graph associated with the graph attributes A.

static bool readGML (GraphAttributes &A, Graph &G, const char *filename)
 Reads graph G with attributes A in GML format from file filename. 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 char *filename)
 Writes graph with attributes A in GML format to file filename. 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...
 
static bool readOGML (GraphAttributes &A, Graph &G, const char *filename)
 Reads graph G with attributes A in OGML format from file filename. 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 char *filename)
 Writes graph with attributes A in OGML format to file filename. 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 readRudy (GraphAttributes &A, Graph &G, const char *filename)
 Reads graph G with edge weights stored in A in Rudy format from file filename. More...
 
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 char *filename)
 Writes graph with edge weights stored in A in Rudy format to file filename. 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...
 
Clustered graphs with attributes

These functions read and write clustered graphs with additional attributes (instances of type ClusterGraphAttributes) in various graph formats. Read functions take a triple (A, C, G) as parameters, where C is the clustered graph associated with the graph attributes A and G is the graph associated with C.

static bool readGML (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const char *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, 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 char *filename)
 Writes with attributes A in GML format to file filename. 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 readOGML (ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const char *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, 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 char *filename)
 Writes with attributes A in OGML format to file filename. 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...
 
Hypergraphs as point-based expansion

These functions load hypergraphs stored in file formats used for electrical circuits. The hypergraphs are directly transformed into their point-based expansions (and hence stored in a usual Graph and not a Hypergraph).

static bool readBENCH (Graph &G, List< node > &hypernodes, List< edge > *shell, const char *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, 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...
 
static bool readPLA (Graph &G, List< node > &hypernodes, List< edge > *shell, const char *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, 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...
 
Graphs Drawing Contest formats

These functions read and write graphs in a simple text-based file formats that have been used in the Graph Drawing Contest.

static bool readChallengeGraph (Graph &G, GridLayout &gl, const char *filename)
 Reads graph G with grid layout gl in GD-Challenge-format from input stream is. More...
 
static bool readChallengeGraph (Graph &G, GridLayout &gl, const string &filename)
 Reads graph G with grid layout gl in GD-Challenge-format from input stream is. 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 char *filename)
 Writes graph G with grid layout gl in GD-Challenge-format to output stream os. 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 output stream os. 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...
 
static bool readGraphML (Graph &G, const char *filename)
 Reads graph G in GraphML format from file filename. More...
 
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 char *filename)
 Reads clustered graph (C, G) in GraphML format from file filename. 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 char *filename)
 Reads graph G with attributes A in GraphML format from file filename. 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 char *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, 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 char *filename)
 Writes graph G in GraphML format to file filename. 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 char *filename)
 Writes clustered graph C in GraphML format to file filename. 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 char *filename)
 Writes graph with attributes A in GraphML format to file filename. 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 char *filename)
 Writes with attributes A in GraphML format to file filename. 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...
 
static bool readDOT (Graph &G, const char *filename)
 Reads graph G in DOT format from file filename. More...
 
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 char *filename)
 Reads clustered graph (C, G) in DOT format from file filename. 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 char *filename)
 Reads graph G with attributes A in DOT format from file filename. 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 char *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, 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 char *filename)
 Writes graph G in DOT format to file filename. 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 char *filename)
 Writes clustered graph C in DOT format to file filename. 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 char *filename)
 Writes graph with attributes A in DOT format to file filename. 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 char *filename)
 Writes with attributes A in DOT format to file filename. 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...
 
static bool readGEXF (Graph &G, const char *filename)
 Reads graph G in GEXF format from file filename. More...
 
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 char *filename)
 Reads clustered graph (C, G) in GEXF format from file filename. 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 char *filename)
 Reads graph G with attributes A in GEXF format from file filename. 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 char *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, 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 char *filename)
 Writes graph G in GEXF format to file filename. 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 char *filename)
 Writes clustered graph C in GEXF format to file filename. 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 char *filename)
 Writes graph with attributes A in GEXF format to file filename. 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 char *filename)
 Writes with attributes A in GEXF format to file filename. 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...
 
static bool readGDF (Graph &G, const char *filename)
 Reads graph G in GDF format from file filename. More...
 
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 char *filename)
 Reads graph G with attributes A in GDF format from file filename. 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 char *filename)
 Writes graph G in GDF format to file filename. 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 char *filename)
 Writes graph with attributes A in GDF format to file filename. 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...
 
static bool readTLP (Graph &G, const char *filename)
 Reads graph G in TLP format from file filename. More...
 
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 char *filename)
 Reads clustered graph (C, G) in TLP format from file filename. 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 char *filename)
 Reads graph G with attributes A in TLP format from file filename. 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 char *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, 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 char *filename)
 Writes graph G in TLP format to file filename. 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 char *filename)
 Writes clustered graph C in TLP format to file filename. 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 char *filename)
 Writes graph with attributes A in TLP format to file filename. 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 char *filename)
 Writes with attributes A in TLP format to file filename. 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...
 
static bool readDL (Graph &G, const char *filename)
 Reads graph G in DL format from file filename. More...
 
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 char *filename)
 Reads graph G with attributes A in DL format from file filename. 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 char *filename)
 Writes graph G in DL format to file filename. 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 char *filename)
 Writes graph with attributes A in DL format to file filename. 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...
 
SteinLib instances

These functions read SteinLib instances stored in STP format and convert them into a weighted graph (represented by an EdgeWeightedGraph) and a list of terminal nodes.

static bool readSTP (EdgeWeightedGraph< double > &wG, List< node > &terminals, NodeArray< bool > &isTerminal, const char *filename)
 Reads a SteinLib instance from file filename and converts it into a weighted graph wG and a set of terminal nodes terminals. More...
 
static bool readSTP (EdgeWeightedGraph< int > &wG, List< node > &terminals, NodeArray< bool > &isTerminal, const char *filename)
 Reads a SteinLib instance from file filename and converts it into a weighted graph wG and a set of terminal nodes terminals. More...
 
static bool readSTP (EdgeWeightedGraph< double > &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...
 
static bool readSTP (EdgeWeightedGraph< int > &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...
 
static bool readSTP (EdgeWeightedGraph< double > &wG, List< node > &terminals, NodeArray< bool > &isTerminal, istream &is)
 Reads a SteinLib instance from input stream is and converts it into a weighted graph wG and a set of terminal nodes terminals. More...
 
static bool readSTP (EdgeWeightedGraph< int > &wG, List< node > &terminals, NodeArray< bool > &isTerminal, istream &is)
 Reads a SteinLib instance from input stream is and converts it into a weighted graph wG and a set of terminal nodes terminals. 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 char *filename)
 Reads graph G with subgraph defined by delEdges from file filename. More...
 
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 char *filename)
 Writes graph G with subgraph defined by delEdges to file filename. 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 char *filename, const SVGSettings &settings=svgSettings)
 
static bool drawSVG (const GraphAttributes &A, const string &filename, const SVGSettings &settings=svgSettings)
 
static bool drawSVG (const GraphAttributes &A, ostream &os, const SVGSettings &settings=svgSettings)
 
static bool drawSVG (const ClusterGraphAttributes &A, const char *filename, const SVGSettings &settings=svgSettings)
 
static bool drawSVG (const ClusterGraphAttributes &A, const string &filename, const SVGSettings &settings=svgSettings)
 
static bool drawSVG (const ClusterGraphAttributes &A, ostream &os, const SVGSettings &settings=svgSettings)
 
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...
 

Static Public Attributes

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...
 

Detailed Description

Utility class providing graph I/O in various exchange formats.

Definition at line 62 of file GraphIO.h.

Member Function Documentation

static bool ogdf::GraphIO::drawSVG ( const GraphAttributes A,
const char *  filename,
const SVGSettings settings = svgSettings 
)
static
static bool ogdf::GraphIO::drawSVG ( const GraphAttributes A,
const string &  filename,
const SVGSettings settings = svgSettings 
)
static
static bool ogdf::GraphIO::drawSVG ( const GraphAttributes A,
ostream &  os,
const SVGSettings settings = svgSettings 
)
static
static bool ogdf::GraphIO::drawSVG ( const ClusterGraphAttributes A,
const char *  filename,
const SVGSettings settings = svgSettings 
)
static
static bool ogdf::GraphIO::drawSVG ( const ClusterGraphAttributes A,
const string &  filename,
const SVGSettings settings = svgSettings 
)
static
static bool ogdf::GraphIO::drawSVG ( const ClusterGraphAttributes A,
ostream &  os,
const SVGSettings settings = svgSettings 
)
static
static ostream& ogdf::GraphIO::indent ( ostream &  os,
int  depth 
)
static

Prints indentation for indentation depth to output stream os and returns os.

static char ogdf::GraphIO::indentChar ( )
inlinestatic

Returns the currently used indentation character.

Definition at line 2898 of file GraphIO.h.

static int ogdf::GraphIO::indentWidth ( )
inlinestatic

Returns the currently used indentation width.

Definition at line 2901 of file GraphIO.h.

static bool ogdf::GraphIO::readBENCH ( Graph G,
List< node > &  hypernodes,
List< edge > *  shell,
const char *  filename 
)
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.

Warning
This is a very simple implementation only usable for very properly formatted files!
Parameters
Gis assigned the read graph (point-based expansion of the hypergraph).
hypernodesis assigned the list of nodes which have to be interpreted as hypernodes.
shellif 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.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readBENCH ( Graph G,
List< node > &  hypernodes,
List< edge > *  shell,
const string &  filename 
)
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.

Warning
This is a very simple implementation only usable for very properly formatted files!
Parameters
Gis assigned the read graph (point-based expansion of the hypergraph).
hypernodesis assigned the list of nodes which have to be interpreted as hypernodes.
shellif 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.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readBENCH ( Graph G,
List< node > &  hypernodes,
List< edge > *  shell,
istream &  is 
)
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.

Warning
This is a very simple implementation only usable for very properly formatted files!
Parameters
Gis assigned the read graph (point-based expansion of the hypergraph).
hypernodesis assigned the list of nodes which have to be interpreted as hypernodes.
shellif 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.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readChaco ( Graph G,
const char *  filename 
)
static

Reads graph G in Chaco format from file filename.

See also
readChaco(Graph &G, istream &is) for more details.
writeChaco(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readChaco ( Graph G,
const string &  filename 
)
static

Reads graph G in Chaco format from file filename.

See also
readChaco(Graph &G, istream &is) for more details.
writeChaco(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readChaco ( Graph G,
istream &  is 
)
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.

See also
writeChaco(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readChallengeGraph ( Graph G,
GridLayout gl,
const char *  filename 
)
static

Reads graph G with grid layout gl in GD-Challenge-format from input stream is.

Precondition
G is the graph associated with grid layout gl.
See also
writeChallengeGraph(const Graph &G, const GridLayout &gl, const char *filename)
Parameters
Gis assigned the read graph.
glis assigned the grid layout.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readChallengeGraph ( Graph G,
GridLayout gl,
const string &  filename 
)
static

Reads graph G with grid layout gl in GD-Challenge-format from input stream is.

Precondition
G is the graph associated with grid layout gl.
See also
writeChallengeGraph(const Graph &G, const GridLayout &gl, const string &filename)
Parameters
Gis assigned the read graph.
glis assigned the grid layout.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readChallengeGraph ( Graph G,
GridLayout gl,
istream &  is 
)
static

Reads graph G with grid layout gl in GD-Challenge-format from input stream is.

Precondition
G is the graph associated with grid layout gl.
See also
writeChallengeGraph(const Graph &G, const GridLayout &gl, ostream &os)
Parameters
Gis assigned the read graph.
glis assigned the grid layout.
isis the input stream from which the graph is read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDL ( Graph G,
const char *  filename 
)
static

Reads graph G in DL format from file filename.

See also
readDL(Graph &G, istream &is) for more details.
writeDL(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDL ( Graph G,
const string &  filename 
)
static

Reads graph G in DL format from file filename.

See also
readDL(Graph &G, istream &is) for more details.
writeDL(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDL ( Graph G,
istream &  is 
)
static

Reads graph G in DL format from input stream is.

See also
writeDL(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDL ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with attributes A in DL format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readDL(GraphAttributes &A, Graph &G, istream &is) for more details.
writeDL(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDL ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with attributes A in DL format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readDL(GraphAttributes &A, Graph &G, istream &is) for more details.
writeDL(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDL ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with attributes A in DL format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeDL(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( Graph G,
const char *  filename 
)
static

Reads graph G in DOT format from file filename.

See also
readDOT(Graph &G, istream &is) for more details.
writeDOT(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( Graph G,
const string &  filename 
)
static

Reads graph G in DOT format from file filename.

See also
readDOT(Graph &G, istream &is) for more details.
writeDOT(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( Graph G,
istream &  is 
)
static

Reads graph G in DOT format from input stream is.

See also
writeDOT(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) in DOT format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readDOT(ClusterGraph &C, Graph &G, istream &is) for more details.
writeDOT(const ClusterGraph &C, const char *filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) in DOT format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readDOT(ClusterGraph &C, Graph &G, istream &is) for more details.
writeDOT(const ClusterGraph &C, const string &filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) in DOT format from input stream is.

Precondition
G is the graph associated with clustered graph C.
See also
writeDOT(const ClusterGraph &C, ostream &os)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with attributes A in DOT format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readDOT(GraphAttributes &A, Graph &G, istream &is) for more details.
writeDOT(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with attributes A in DOT format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readDOT(GraphAttributes &A, Graph &G, istream &is) for more details.
writeDOT(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with attributes A in DOT format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeDOT(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) with attributes A in DOT format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readDOT(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeDOT(const ClusterGraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) with attributes A in DOT format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readDOT(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeDOT(const ClusterGraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readDOT ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) with attributes A in DOT format from input stream is.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
writeDOT(const ClusterGraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readEdgeListSubgraph ( Graph G,
List< edge > &  delEdges,
const char *  filename 
)
static

Reads graph G with subgraph defined by delEdges from file filename.

See also
writeEdgeListSubgraph(const Graph &G, const List<edge> &delEdges, const char *filename)
Parameters
Gis assigned the read graph.
delEdgesis assigned the edges of the subgraph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readEdgeListSubgraph ( Graph G,
List< edge > &  delEdges,
const string &  filename 
)
static

Reads graph G with subgraph defined by delEdges from file filename.

See also
writeEdgeListSubgraph(const Graph &G, const List<edge> &delEdges, const string &filename)
Parameters
Gis assigned the read graph.
delEdgesis assigned the edges of the subgraph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readEdgeListSubgraph ( Graph G,
List< edge > &  delEdges,
istream &  is 
)
static

Reads graph G with subgraph defined by delEdges from stream is.

See also
writeEdgeListSubgraph(const Graph &G, const List<edge> &delEdges, ostream &os)
Parameters
Gis assigned the read graph.
delEdgesis assigned the edges of the subgraph.
isis the input stream from which the graph is read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGDF ( Graph G,
const char *  filename 
)
static

Reads graph G in GDF format from file filename.

See also
readGDF(Graph &G, istream &is) for more details.
writeGDF(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGDF ( Graph G,
const string &  filename 
)
static

Reads graph G in GDF format from file filename.

See also
readGDF(Graph &G, istream &is) for more details.
writeGDF(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGDF ( Graph G,
istream &  is 
)
static

Reads graph G in GDF format from input stream is.

See also
writeGDF(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGDF ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with attributes A in GDF format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readGDF(GraphAttributes &A, Graph &G, istream &is) for more details.
writeGDF(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGDF ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with attributes A in GDF format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readGDF(GraphAttributes &A, Graph &G, istream &is) for more details.
writeGDF(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGDF ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with attributes A in GDF format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeGDF(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( Graph G,
const char *  filename 
)
static

Reads graph G in GEXF format from file filename.

See also
readGEXF(Graph &G, istream &is) for more details.
writeGEXF(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( Graph G,
const string &  filename 
)
static

Reads graph G in GEXF format from file filename.

See also
readGEXF(Graph &G, istream &is) for more details.
writeGEXF(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( Graph G,
istream &  is 
)
static

Reads graph G in GEXF format from input stream is.

See also
writeGEXF(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) in GEXF format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readGEXF(ClusterGraph &C, Graph &G, istream &is) for more details.
writeGEXF(const ClusterGraph &C, const char *filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) in GEXF format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readGEXF(ClusterGraph &C, Graph &G, istream &is) for more details.
writeGEXF(const ClusterGraph &C, const string &filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) in GEXF format from input stream is.

Precondition
G is the graph associated with clustered graph C.
See also
writeGEXF(const ClusterGraph &C, ostream &os)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with attributes A in GEXF format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readGEXF(GraphAttributes &A, Graph &G, istream &is) for more details.
writeGEXF(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with attributes A in GEXF format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readGEXF(GraphAttributes &A, Graph &G, istream &is) for more details.
writeGEXF(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with attributes A in GEXF format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeGEXF(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) with attributes A in GEXF format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readGEXF(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeGEXF(const ClusterGraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) with attributes A in GEXF format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readGEXF(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeGEXF(const ClusterGraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGEXF ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) with attributes A in GEXF format from input stream is.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
writeGEXF(const ClusterGraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( Graph G,
const char *  filename 
)
static

Reads graph G in GML format from file filename.

See also
readGML(Graph &G, istream &is) for more details.
writeGML(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( Graph G,
const string &  filename 
)
static

Reads graph G in GML format from file filename.

See also
readGML(Graph &G, istream &is) for more details.
writeGML(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( Graph G,
istream &  is 
)
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.

See also
writeGML(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) in GML format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readGML(ClusterGraph &C, Graph &G, istream &is) for more details.
writeGML(const ClusterGraph &C, const char *filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) in GML format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readGML(ClusterGraph &C, Graph &G, istream &is) for more details.
writeGML(const ClusterGraph &C, const string &filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) in GML format from input stream is.

Precondition
G is the graph associated with clustered graph C.
See also
writeGML(const ClusterGraph &C, ostream &os)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with attributes A in GML format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readGML(GraphAttributes &A, Graph &G, istream &is) for more details.
writeGML(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with attributes A in GML format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readGML(GraphAttributes &A, Graph &G, istream &is) for more details.
writeGML(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with attributes A in GML format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeGML(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) with attributes A in GML format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeGML(const ClusterGraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) with attributes A in GML format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeGML(const ClusterGraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) with attributes A in GML format from input stream is.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
writeGML(const ClusterGraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( Graph G,
const char *  filename 
)
static

Reads graph G in GraphML format from file filename.

See also
readGraphML(Graph &G, istream &is) for more details.
writeGraphML(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( Graph G,
const string &  filename 
)
static

Reads graph G in GraphML format from file filename.

See also
readGraphML(Graph &G, istream &is) for more details.
writeGraphML(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( Graph G,
istream &  is 
)
static

Reads graph G in GraphML format from input stream is.

See also
writeGraphML(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) in GraphML format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readGraphML(ClusterGraph &C, Graph &G, istream &is) for more details.
writeGraphML(const ClusterGraph &C, const char *filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) in GraphML format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readGraphML(ClusterGraph &C, Graph &G, istream &is) for more details.
writeGraphML(const ClusterGraph &C, const string &filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) in GraphML format from input stream is.

Precondition
G is the graph associated with clustered graph C.
See also
writeGraphML(const ClusterGraph &C, ostream &os)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with attributes A in GraphML format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readGraphML(GraphAttributes &A, Graph &G, istream &is) for more details.
writeGraphML(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with attributes A in GraphML format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readGraphML(GraphAttributes &A, Graph &G, istream &is) for more details.
writeGraphML(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with attributes A in GraphML format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeGraphML(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) with attributes A in GraphML format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readGraphML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeGraphML(const ClusterGraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) with attributes A in GraphML format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readGraphML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeGraphML(const ClusterGraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readGraphML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) with attributes A in GraphML format from input stream is.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
writeGraphML(const ClusterGraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readLEDA ( Graph G,
const char *  filename 
)
static

Reads graph G in LEDA graph format from file filename.

See also
readLEDA(Graph &G, istream &is) for more details.
writeLEDA(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readLEDA ( Graph G,
const string &  filename 
)
static

Reads graph G in LEDA graph format from file filename.

See also
readLEDA(Graph &G, istream &is) for more details.
writeLEDA(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readLEDA ( Graph G,
istream &  is 
)
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.

See also
writeLEDA(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( Graph G,
const char *  filename 
)
static

Reads graph G in OGML format from file filename.

See also
readOGML(Graph &G, istream &is) for more details.
writeOGML(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( Graph G,
const string &  filename 
)
static

Reads graph G in OGML format from file filename.

See also
readOGML(Graph &G, istream &is) for more details.
writeOGML(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( Graph G,
istream &  is 
)
static

Reads graph G in OGML format from input stream is.

See also
writeOGML(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) in OGML format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readOGML(ClusterGraph &C, Graph &G, istream &is) for more details.
writeOGML(const ClusterGraph &C, const char *filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) in OGML format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readOGML(ClusterGraph &C, Graph &G, istream &is) for more details.
writeOGML(const ClusterGraph &C, const string &filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) in OGML format from input stream is.

Precondition
G is the graph associated with clustered graph C.
See also
writeOGML(const ClusterGraph &C, ostream &os)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with attributes A in OGML format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readOGML(GraphAttributes &A, Graph &G, istream &is) for more details.
writeOGML(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with attributes A in OGML format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readOGML(GraphAttributes &A, Graph &G, istream &is) for more details.
writeOGML(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with attributes A in OGML format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeOGML(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) with attributes A in OGML format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readOGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeOGML(const ClusterGraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) with attributes A in OGML format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readOGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeOGML(const ClusterGraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readOGML ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) with attributes A in OGML format from input stream is.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
writeOGML(const ClusterGraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readPLA ( Graph G,
List< node > &  hypernodes,
List< edge > *  shell,
const char *  filename 
)
static

Reads a hypergraph (as point-based expansion) in PLA format from file filename.

Parameters
Gis assigned the read graph (point-based expansion of the hypergraph).
hypernodesis assigned the list of nodes which have to be interpreted as hypernodes.
shellif 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.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
See also
readPLA(Graph &G, List<node>& hypernodes, List<edge> *shell, istream &is) for details
static bool ogdf::GraphIO::readPLA ( Graph G,
List< node > &  hypernodes,
List< edge > *  shell,
const string &  filename 
)
static

Reads a hypergraph (as point-based expansion) in PLA format from file filename.

Parameters
Gis assigned the read graph (point-based expansion of the hypergraph).
hypernodesis assigned the list of nodes which have to be interpreted as hypernodes.
shellif 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.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
See also
readPLA(Graph &G, List<node>& hypernodes, List<edge> *shell, istream &is) for details
static bool ogdf::GraphIO::readPLA ( Graph G,
List< node > &  hypernodes,
List< edge > *  shell,
istream &  is 
)
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.

Warning
This is a very simple implementation only usable for very properly formatted files!
Parameters
Gis assigned the read graph (point-based expansion of the hypergraph).
hypernodesis assigned the list of nodes which have to be interpreted as hypernodes.
shellif 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.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readPMDissGraph ( Graph G,
const char *  filename 
)
static

Reads graph G in a simple format as used in Petra Mutzel's thesis from file filename.

See also
readPMDissGraph(Graph &G, istream &is) for more details.
writePMDissGraph(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readPMDissGraph ( Graph G,
const string &  filename 
)
static

Reads graph G in a simple format as used in Petra Mutzel's thesis from file filename.

See also
readPMDissGraph(Graph &G, istream &is) for more details.
writePMDissGraph(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readPMDissGraph ( Graph G,
istream &  is 
)
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
See also
writePMDissGraph(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readRome ( Graph G,
const char *  filename 
)
static

Reads graph G in Rome-Lib format from file filename.

See also
readRome(Graph &G, istream &is) for more details.
writeRome(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readRome ( Graph G,
const string &  filename 
)
static

Reads graph G in Rome-Lib format from file filename.

See also
readRome(Graph &G, istream &is) for more details.
writeRome(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readRome ( Graph G,
istream &  is 
)
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):

  • node-line: NodeId 0
  • separator-line: starts with a #-sign
  • edge-line: EdgeId 0 SourceNodeId TargetNodeId
See also
writeRome(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readRudy ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with edge weights stored in A in Rudy format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readRudy(GraphAttributes &A, Graph &G, istream &is) for more details.
writeRudy(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes (only edge weights (as doubles) are used).
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readRudy ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with edge weights stored in A in Rudy format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readRudy(GraphAttributes &A, Graph &G, istream &is) for more details.
writeRudy(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes (only edge weights (as doubles) are used).
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readRudy ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with edge weights stored in A in Rudy format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeRudy(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes (only edge weights (as doubles) are used).
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readSTP ( EdgeWeightedGraph< double > &  wG,
List< node > &  terminals,
NodeArray< bool > &  isTerminal,
const char *  filename 
)
static

Reads a SteinLib instance from file filename and converts it into a weighted graph wG and a set of terminal nodes terminals.

See also
readSTP(EdgeWeightedGraph<double> &wG, List<node> &terminals, NodeArray<bool> &isTerminal, istream &is) for more details.
Parameters
wGis assigned the graph stored in the SteinLib instance.
terminalsis assgined the list of terminals specified in the SteinLib instance.
isTerminalis assigned the incidence vector for the terminal nodes.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readSTP ( EdgeWeightedGraph< int > &  wG,
List< node > &  terminals,
NodeArray< bool > &  isTerminal,
const char *  filename 
)
static

Reads a SteinLib instance from file filename and converts it into a weighted graph wG and a set of terminal nodes terminals.

See also
readSTP(EdgeWeightedGraph<int> &wG, List<node> &terminals, NodeArray<bool> &isTerminal, istream &is) for more details.
Parameters
wGis assigned the graph stored in the SteinLib instance.
terminalsis assgined the list of terminals specified in the SteinLib instance.
isTerminalis assigned the incidence vector for the terminal nodes.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readSTP ( EdgeWeightedGraph< double > &  wG,
List< node > &  terminals,
NodeArray< bool > &  isTerminal,
const string &  filename 
)
static

Reads a SteinLib instance from file filename and converts it into a weighted graph wG and a set of terminal nodes terminals.

See also
readSTP(EdgeWeightedGraph<double> &wG, List<node> &terminals, NodeArray<bool> &isTerminal, istream &is) for more details.
Parameters
wGis assigned the graph stored in the SteinLib instance.
terminalsis assgined the list of terminals specified in the SteinLib instance.
isTerminalis assigned the incidence vector for the terminal nodes.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readSTP ( EdgeWeightedGraph< int > &  wG,
List< node > &  terminals,
NodeArray< bool > &  isTerminal,
const string &  filename 
)
static

Reads a SteinLib instance from file filename and converts it into a weighted graph wG and a set of terminal nodes terminals.

See also
readSTP(EdgeWeightedGraph<int> &wG, List<node> &terminals, NodeArray<bool> &isTerminal, istream &is) for more details.
Parameters
wGis assigned the graph stored in the SteinLib instance.
terminalsis assgined the list of terminals specified in the SteinLib instance.
isTerminalis assigned the incidence vector for the terminal nodes.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readSTP ( EdgeWeightedGraph< double > &  wG,
List< node > &  terminals,
NodeArray< bool > &  isTerminal,
istream &  is 
)
static

Reads a SteinLib instance from input stream is and converts it into a weighted graph wG and a set of terminal nodes terminals.

Warning
The coordinate section of the SteinLib instance is not read!
Parameters
wGis assigned the graph stored in the SteinLib instance.
terminalsis assgined the list of terminals specified in the SteinLib instance.
isTerminalis assigned the incidence vector for the terminal nodes.
isis the input stream from which the graph is read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readSTP ( EdgeWeightedGraph< int > &  wG,
List< node > &  terminals,
NodeArray< bool > &  isTerminal,
istream &  is 
)
static

Reads a SteinLib instance from input stream is and converts it into a weighted graph wG and a set of terminal nodes terminals.

Warning
The coordinate section of the SteinLib instance is not read!
Parameters
wGis assigned the graph stored in the SteinLib instance.
terminalsis assgined the list of terminals specified in the SteinLib instance.
isTerminalis assigned the incidence vector for the terminal nodes.
isis the input stream from which the graph is read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( Graph G,
const char *  filename 
)
static

Reads graph G in TLP format from file filename.

See also
readTLP(Graph &G, istream &is) for more details.
writeTLP(const Graph &G, const char *filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( Graph G,
const string &  filename 
)
static

Reads graph G in TLP format from file filename.

See also
readTLP(Graph &G, istream &is) for more details.
writeTLP(const Graph &G, const string &filename)
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( Graph G,
istream &  is 
)
static

Reads graph G in TLP format from input stream is.

See also
writeTLP(const Graph &G, ostream &os)
Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) in TLP format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readTLP(ClusterGraph &C, Graph &G, istream &is) for more details.
writeTLP(const ClusterGraph &C, const char *filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) in TLP format from file filename.

Precondition
G is the graph associated with clustered graph C.
See also
readTLP(ClusterGraph &C, Graph &G, istream &is) for more details.
writeTLP(const ClusterGraph &C, const string &filename)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) in TLP format from input stream is.

Precondition
G is the graph associated with clustered graph C.
See also
writeTLP(const ClusterGraph &C, ostream &os)
Parameters
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( GraphAttributes A,
Graph G,
const char *  filename 
)
static

Reads graph G with attributes A in TLP format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readTLP(GraphAttributes &A, Graph &G, istream &is) for more details.
writeTLP(const GraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( GraphAttributes A,
Graph G,
const string &  filename 
)
static

Reads graph G with attributes A in TLP format from file filename.

Precondition
G is the graph associated with attributes A.
See also
readTLP(GraphAttributes &A, Graph &G, istream &is) for more details.
writeTLP(const GraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( GraphAttributes A,
Graph G,
istream &  is 
)
static

Reads graph G with attributes A in TLP format from input stream is.

Precondition
G is the graph associated with attributes A.
See also
writeTLP(const GraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const char *  filename 
)
static

Reads clustered graph (C, G) with attributes A in TLP format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readTLP(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeTLP(const ClusterGraphAttributes &A, const char *filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
const string &  filename 
)
static

Reads clustered graph (C, G) with attributes A in TLP format from file filename.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
readTLP(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is) for more details.
writeTLP(const ClusterGraphAttributes &A, const string &filename)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readTLP ( ClusterGraphAttributes A,
ClusterGraph C,
Graph G,
istream &  is 
)
static

Reads clustered graph (C, G) with attributes A in TLP format from input stream is.

Precondition
C is the clustered graph associated with attributes A, and G is the graph associated with C.
See also
writeTLP(const ClusterGraphAttributes &A, ostream &os)
Parameters
Ais assigned the graph's attributes.
Cis assigned the read clustered graph (cluster structure).
Gis assigned the read clustered graph (graph structure).
isis the input stream to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readYGraph ( Graph G,
const char *  filename 
)
static

Reads graph G in Y-graph format from file filename.

See also
readYGraph(Graph &G, istream &is) for more details.
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readYGraph ( Graph G,
const string &  filename 
)
static

Reads graph G in Y-graph format from file filename.

See also
readYGraph(Graph &G, istream &is) for more details.
Parameters
Gis assigned the read graph.
filenameis the name of the file to be read.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::readYGraph ( Graph G,
istream &  is 
)
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.

Parameters
Gis assigned the read graph.
isis the input stream to be read.
Returns
true if successful, false otherwise.
static void ogdf::GraphIO::setIndentChar ( char  c)
inlinestatic

Sets the indentation character to \ c.

Precondition
c must be a white-space character (e.g., a space or a tab).

Definition at line 2907 of file GraphIO.h.

static void ogdf::GraphIO::setIndentWidth ( int  w)
inlinestatic

Sets the indentation width to w.

Precondition
w must be non-negative. Setting the indentation width to 0 suppresses indentation.

Definition at line 2917 of file GraphIO.h.

static bool ogdf::GraphIO::writeChaco ( const Graph G,
const char *  filename 
)
static

Writes graph G in Chaco format to file filename.

See also
writeChaco(const Graph &G, ostream &os) for more details.
readChaco(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeChaco ( const Graph G,
const string &  filename 
)
static

Writes graph G in Chaco format to file filename.

See also
writeChaco(const Graph &G, ostream &os) for more details.
readChaco(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeChaco ( const Graph G,
ostream &  os 
)
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.

See also
readChaco(Graph &G, istream &is)
Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeChallengeGraph ( const Graph G,
const GridLayout gl,
const char *  filename 
)
static

Writes graph G with grid layout gl in GD-Challenge-format to output stream os.

Precondition
G is the graph associated with grid layout gl.
See also
readChallengeGraph(Graph &G, GridLayout &gl, const char *filename)
Parameters
Gis the graph to be written.
glspecifies the grid layout of G to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeChallengeGraph ( const Graph G,
const GridLayout gl,
const string &  filename 
)
static

Writes graph G with grid layout gl in GD-Challenge-format to output stream os.

Precondition
G is the graph associated with grid layout gl.
See also
readChallengeGraph(Graph &G, GridLayout &gl, const string &filename)
Parameters
Gis the graph to be written.
glspecifies the grid layout of G to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeChallengeGraph ( const Graph G,
const GridLayout gl,
ostream &  os 
)
static

Writes graph G with grid layout gl in GD-Challenge-format to output stream os.

Precondition
G is the graph associated with grid layout gl.
See also
readChallengeGraph(Graph &G, GridLayout &gl, istream &is)
Parameters
Gis the graph to be written.
glspecifies the grid layout of G to be written.
osis the output stream to which the graph is written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDL ( const Graph G,
const char *  filename 
)
static

Writes graph G in DL format to file filename.

See also
writeDL(const Graph &G, ostream &os) for more details.
readDL(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDL ( const Graph G,
const string &  filename 
)
static

Writes graph G in DL format to file filename.

See also
writeDL(const Graph &G, ostream &os) for more details.
readDL(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDL ( const Graph G,
ostream &  os 
)
static

Writes graph G in DL format to output stream os.

Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDL ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with attributes A in DL format to file filename.

See also
writeDL(const GraphAttributes &A, ostream &os) for more details.
readDL(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDL ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in DL format to file filename.

See also
writeDL(const GraphAttributes &A, ostream &os) for more details.
readDL(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDL ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in DL format to output stream os.

Parameters
Aspecifies the graph and its attributes to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const Graph G,
const char *  filename 
)
static

Writes graph G in DOT format to file filename.

See also
writeDOT(const Graph &G, ostream &os) for more details.
readDOT(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const Graph G,
const string &  filename 
)
static

Writes graph G in DOT format to file filename.

See also
writeDOT(const Graph &G, ostream &os) for more details.
readDOT(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const Graph G,
ostream &  os 
)
static

Writes graph G in DOT format to output stream os.

Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const ClusterGraph C,
const char *  filename 
)
static

Writes clustered graph C in DOT format to file filename.

See also
writeDOT(const ClusterGraph &C, ostream &os) for more details.
readDOT(ClusterGraph &C, Graph &G, const char *filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const ClusterGraph C,
const string &  filename 
)
static

Writes clustered graph C in DOT format to file filename.

See also
writeDOT(const ClusterGraph &C, ostream &os) for more details.
readDOT(ClusterGraph &C, Graph &G, const string &filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const ClusterGraph C,
ostream &  os 
)
static

Writes clustered graph C in DOT format to output stream os.

Parameters
Cis the clustered graph to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with attributes A in DOT format to file filename.

See also
writeDOT(const GraphAttributes &A, ostream &os) for more details.
readDOT(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in DOT format to file filename.

See also
writeDOT(const GraphAttributes &A, ostream &os) for more details.
readDOT(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in DOT format to output stream os.

Parameters
Aspecifies the graph and its attributes to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const ClusterGraphAttributes A,
const char *  filename 
)
static

Writes with attributes A in DOT format to file filename.

See also
writeDOT(const ClusterGraphAttributes &A, ostream &os) for more details.
readDOT(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const char *filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const ClusterGraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in DOT format to file filename.

See also
writeDOT(const ClusterGraphAttributes &A, ostream &os) for more details.
readDOT(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeDOT ( const ClusterGraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in DOT format to output stream os.

Parameters
Aspecifies the clustered graph and its attributes to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeEdgeListSubgraph ( const Graph G,
const List< edge > &  delEdges,
const char *  filename 
)
static

Writes graph G with subgraph defined by delEdges to file filename.

See also
readEdgeListSubgraph(Graph &G, List<edge> &delEdges, const char *filename)
Parameters
Gis the graph to be written.
delEdgesspecifies the edges of the subgraph to be stored.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeEdgeListSubgraph ( const Graph G,
const List< edge > &  delEdges,
const string &  filename 
)
static

Writes graph G with subgraph defined by delEdges to file filename.

See also
readEdgeListSubgraph(Graph &G, List<edge> &delEdges, const string &filename)
Parameters
Gis the graph to be written.
delEdgesspecifies the edges of the subgraph to be stored.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeEdgeListSubgraph ( const Graph G,
const List< edge > &  delEdges,
ostream &  os 
)
static

Writes graph G with subgraph defined by delEdges to stream os.

See also
readEdgeListSubgraph(Graph &G, List<edge> &delEdges, istream &is)
Parameters
Gis the graph to be written.
delEdgesspecifies the edges of the subgraph to be stored.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGDF ( const Graph G,
const char *  filename 
)
static

Writes graph G in GDF format to file filename.

See also
writeGDF(const Graph &G, ostream &os) for more details.
readGDF(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGDF ( const Graph G,
const string &  filename 
)
static

Writes graph G in GDF format to file filename.

See also
writeGDF(const Graph &G, ostream &os) for more details.
readGDF(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGDF ( const Graph G,
ostream &  os 
)
static

Writes graph G in GDF format to output stream os.

Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGDF ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with attributes A in GDF format to file filename.

See also
writeGDF(const GraphAttributes &A, ostream &os) for more details.
readGDF(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGDF ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in GDF format to file filename.

See also
writeGDF(const GraphAttributes &A, ostream &os) for more details.
readGDF(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGDF ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in GDF format to output stream os.

Parameters
Aspecifies the graph and its attributes to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const Graph G,
const char *  filename 
)
static

Writes graph G in GEXF format to file filename.

See also
writeGEXF(const Graph &G, ostream &os) for more details.
readGEXF(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const Graph G,
const string &  filename 
)
static

Writes graph G in GEXF format to file filename.

See also
writeGEXF(const Graph &G, ostream &os) for more details.
readGEXF(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const Graph G,
ostream &  os 
)
static

Writes graph G in GEXF format to output stream os.

Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const ClusterGraph C,
const char *  filename 
)
static

Writes clustered graph C in GEXF format to file filename.

See also
writeGEXF(const ClusterGraph &C, ostream &os) for more details.
readGEXF(ClusterGraph &C, Graph &G, const char *filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const ClusterGraph C,
const string &  filename 
)
static

Writes clustered graph C in GEXF format to file filename.

See also
writeGEXF(const ClusterGraph &C, ostream &os) for more details.
readGEXF(ClusterGraph &C, Graph &G, const string &filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const ClusterGraph C,
ostream &  os 
)
static

Writes clustered graph C in GEXF format to output stream os.

Parameters
Cis the clustered graph to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with attributes A in GEXF format to file filename.

See also
writeGEXF(const GraphAttributes &A, ostream &os) for more details.
readGEXF(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in GEXF format to file filename.

See also
writeGEXF(const GraphAttributes &A, ostream &os) for more details.
readGEXF(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in GEXF format to output stream os.

Parameters
Aspecifies the graph and its attributes to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const ClusterGraphAttributes A,
const char *  filename 
)
static

Writes with attributes A in GEXF format to file filename.

See also
writeGEXF(const ClusterGraphAttributes &A, ostream &os) for more details.
readGEXF(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const char *filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const ClusterGraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in GEXF format to file filename.

See also
writeGEXF(const ClusterGraphAttributes &A, ostream &os) for more details.
readGEXF(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGEXF ( const ClusterGraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in GEXF format to output stream os.

Parameters
Aspecifies the clustered graph and its attributes to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const Graph G,
const char *  filename 
)
static

Writes graph G in GML format to file filename.

See also
writeGML(const Graph &G, ostream &os) for more details.
readGML(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const Graph G,
const string &  filename 
)
static

Writes graph G in GML format to file filename.

See also
writeGML(const Graph &G, ostream &os) for more details.
readGML(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const Graph G,
ostream &  os 
)
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.

See also
readGML(Graph &G, istream &is)
Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const ClusterGraph C,
const char *  filename 
)
static

Writes clustered graph C in GML format to file filename.

See also
writeGML(const ClusterGraph &C, ostream &os) for more details.
readGML(ClusterGraph &C, Graph &G, const char *filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const ClusterGraph C,
const string &  filename 
)
static

Writes clustered graph C in GML format to file filename.

See also
writeGML(const ClusterGraph &C, ostream &os) for more details.
readGML(ClusterGraph &C, Graph &G, const string &filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const ClusterGraph C,
ostream &  os 
)
static

Writes clustered graph C in GML format to output stream os.

See also
readGML(ClusterGraph &C, Graph &G, istream &is)
Parameters
Cis the clustered graph to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with attributes A in GML format to file filename.

See also
writeGML(const GraphAttributes &A, ostream &os) for more details.
readGML(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in GML format to file filename.

See also
writeGML(const GraphAttributes &A, ostream &os) for more details.
readGML(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in GML format to output stream os.

See also
readGML(GraphAttributes &A, Graph &G, istream &is)
Parameters
Aspecifies the graph and its attributes to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const ClusterGraphAttributes A,
const char *  filename 
)
static

Writes with attributes A in GML format to file filename.

See also
writeGML(const ClusterGraphAttributes &A, ostream &os) for more details.
readGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const char *filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const ClusterGraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in GML format to file filename.

See also
writeGML(const ClusterGraphAttributes &A, ostream &os) for more details.
readGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGML ( const ClusterGraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in GML format to output stream os.

See also
readGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is)
Parameters
Aspecifies the clustered graph and its attributes to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const Graph G,
const char *  filename 
)
static

Writes graph G in GraphML format to file filename.

See also
writeGraphML(const Graph &G, ostream &os) for more details.
readGraphML(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const Graph G,
const string &  filename 
)
static

Writes graph G in GraphML format to file filename.

See also
writeGraphML(const Graph &G, ostream &os) for more details.
readGraphML(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const Graph G,
ostream &  os 
)
static

Writes graph G in GraphML format to output stream os.

Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const ClusterGraph C,
const char *  filename 
)
static

Writes clustered graph C in GraphML format to file filename.

See also
writeGraphML(const ClusterGraph &C, ostream &os) for more details.
readGraphML(ClusterGraph &C, Graph &G, const char *filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const ClusterGraph C,
const string &  filename 
)
static

Writes clustered graph C in GraphML format to file filename.

See also
writeGraphML(const ClusterGraph &C, ostream &os) for more details.
readGraphML(ClusterGraph &C, Graph &G, const string &filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const ClusterGraph C,
ostream &  os 
)
static

Writes clustered graph C in GraphML format to output stream os.

Parameters
Cis the clustered graph to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with attributes A in GraphML format to file filename.

See also
writeGraphML(const GraphAttributes &A, ostream &os) for more details.
readGraphML(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in GraphML format to file filename.

See also
writeGraphML(const GraphAttributes &A, ostream &os) for more details.
readGraphML(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in GraphML format to output stream os.

Parameters
Aspecifies the graph and its attributes to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const ClusterGraphAttributes A,
const char *  filename 
)
static

Writes with attributes A in GraphML format to file filename.

See also
writeGraphML(const ClusterGraphAttributes &A, ostream &os) for more details.
readGraphML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const char *filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const ClusterGraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in GraphML format to file filename.

See also
writeGraphML(const ClusterGraphAttributes &A, ostream &os) for more details.
readGraphML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeGraphML ( const ClusterGraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in GraphML format to output stream os.

Parameters
Aspecifies the clustered graph and its attributes to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeLEDA ( const Graph G,
const char *  filename 
)
static

Writes graph G in LEDA graph format to file filename.

See also
writeLEDA(const Graph &G, ostream &os) for more details.
readLEDA(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeLEDA ( const Graph G,
const string &  filename 
)
static

Writes graph G in LEDA graph format to file filename.

See also
writeLEDA(const Graph &G, ostream &os) for more details.
readLEDA(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeLEDA ( const Graph G,
ostream &  os 
)
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.

See also
readLEDA(Graph &G, istream &is)
Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const Graph G,
const char *  filename 
)
static

Writes graph G in OGML format to file filename.

See also
writeOGML(const Graph &G, ostream &os) for more details.
readOGML(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const Graph G,
const string &  filename 
)
static

Writes graph G in OGML format to file filename.

See also
writeOGML(const Graph &G, ostream &os) for more details.
readOGML(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const Graph G,
ostream &  os 
)
static

Writes graph G in OGML format to output stream os.

See also
bool readOGML(Graph &G, istream &is)
Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const ClusterGraph C,
const char *  filename 
)
static

Writes clustered graph C in OGML format to file filename.

See also
writeOGML(const ClusterGraph &C, ostream &os) for more details.
readOGML(ClusterGraph &C, Graph &G, const char *filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const ClusterGraph C,
const string &  filename 
)
static

Writes clustered graph C in OGML format to file filename.

See also
writeOGML(const ClusterGraph &C, ostream &os) for more details.
readOGML(ClusterGraph &C, Graph &G, const string &filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const ClusterGraph C,
ostream &  os 
)
static

Writes clustered graph C in OGML format to output stream os.

See also
readOGML(ClusterGraph &C, Graph &G, istream &is)
Parameters
Cis the clustered graph to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with attributes A in OGML format to file filename.

See also
writeOGML(const GraphAttributes &A, ostream &os) for more details.
readOGML(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in OGML format to file filename.

See also
writeOGML(const GraphAttributes &A, ostream &os) for more details.
readOGML(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in OGML format to output stream os.

See also
readOGML(GraphAttributes &A, Graph &G, istream &is)
Parameters
Aspecifies the graph and its attributes to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const ClusterGraphAttributes A,
const char *  filename 
)
static

Writes with attributes A in OGML format to file filename.

See also
writeOGML(const ClusterGraphAttributes &A, ostream &os) for more details.
readOGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const char *filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const ClusterGraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in OGML format to file filename.

See also
writeOGML(const ClusterGraphAttributes &A, ostream &os) for more details.
readOGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeOGML ( const ClusterGraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in OGML format to output stream os.

See also
readOGML(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, istream &is)
Parameters
Aspecifies the clustered graph and its attributes to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writePMDissGraph ( const Graph G,
const char *  filename 
)
static

Writes graph G in a simple format as used in Petra Mutzel's thesis to file filename.

See also
writePMDissGraph(const Graph &G, ostream &os) for more details.
readPMDissGraph(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writePMDissGraph ( const Graph G,
const string &  filename 
)
static

Writes graph G in a simple format as used in Petra Mutzel's thesis to file filename.

See also
writePMDissGraph(const Graph &G, ostream &os) for more details.
readPMDissGraph(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writePMDissGraph ( const Graph G,
ostream &  os 
)
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
See also
readPMDissGraph(Graph &G, istream &is)
Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeRome ( const Graph G,
const char *  filename 
)
static

Writes graph G in Rome-Lib format to file filename.

See also
writeRome(const Graph &G, ostream &os) for more details.
readRome(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeRome ( const Graph G,
const string &  filename 
)
static

Writes graph G in Rome-Lib format to file filename.

See also
writeRome(const Graph &G, ostream &os) for more details.
readRome(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeRome ( const Graph G,
ostream &  os 
)
static

Writes graph G in Rome-Lib format to output stream os.

See also
readRome(Graph &G, istream &is) for more details about the format.
Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeRudy ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with edge weights stored in A in Rudy format to file filename.

See also
writeRudy(const GraphAttributes &A, ostream &os) for more details.
readRudy(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written (only edge weights (as doubles) are stored in this format).
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeRudy ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with edge weights stored in A in Rudy format to file filename.

See also
writeRudy(const GraphAttributes &A, ostream &os) for more details.
readRudy(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written (only edge weights (as doubles) are stored in this format).
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeRudy ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with edge weights stored in A in Rudy format to output stream os.

See also
readRudy(GraphAttributes &A, Graph &G, istream &is)
Parameters
Aspecifies the graph and its attributes to be written (only edge weights (as doubles) are stored in this format).
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const Graph G,
const char *  filename 
)
static

Writes graph G in TLP format to file filename.

See also
writeTLP(const Graph &G, ostream &os) for more details.
readTLP(Graph &G, const char *filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const Graph G,
const string &  filename 
)
static

Writes graph G in TLP format to file filename.

See also
writeTLP(const Graph &G, ostream &os) for more details.
readTLP(Graph &G, const string &filename)
Parameters
Gis the graph to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const Graph G,
ostream &  os 
)
static

Writes graph G in TLP format to output stream os.

Parameters
Gis the graph to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const ClusterGraph C,
const char *  filename 
)
static

Writes clustered graph C in TLP format to file filename.

See also
writeTLP(const ClusterGraph &C, ostream &os) for more details.
readTLP(ClusterGraph &C, Graph &G, const char *filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const ClusterGraph C,
const string &  filename 
)
static

Writes clustered graph C in TLP format to file filename.

See also
writeTLP(const ClusterGraph &C, ostream &os) for more details.
readTLP(ClusterGraph &C, Graph &G, const string &filename)
Parameters
Cis the clustered graph to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const ClusterGraph C,
ostream &  os 
)
static

Writes clustered graph C in TLP format to output stream os.

Parameters
Cis the clustered graph to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const GraphAttributes A,
const char *  filename 
)
static

Writes graph with attributes A in TLP format to file filename.

See also
writeTLP(const GraphAttributes &A, ostream &os) for more details.
readTLP(GraphAttributes &A, Graph &G, const char *filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const GraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in TLP format to file filename.

See also
writeTLP(const GraphAttributes &A, ostream &os) for more details.
readTLP(GraphAttributes &A, Graph &G, const string &filename)
Parameters
Aspecifies the graph and its attributes to be written.
filenameis the name of the file to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const GraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in TLP format to output stream os.

Parameters
Aspecifies the graph and its attributes to be written.
osis the output stream to which the graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const ClusterGraphAttributes A,
const char *  filename 
)
static

Writes with attributes A in TLP format to file filename.

See also
writeTLP(const ClusterGraphAttributes &A, ostream &os) for more details.
readTLP(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const char *filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const ClusterGraphAttributes A,
const string &  filename 
)
static

Writes graph with attributes A in TLP format to file filename.

See also
writeTLP(const ClusterGraphAttributes &A, ostream &os) for more details.
readTLP(ClusterGraphAttributes &A, ClusterGraph &C, Graph &G, const string &filename)
Parameters
Aspecifies the clustered graph and its attributes to be written.
filenameis the name of the file to which the clustered graph will be written.
Returns
true if successful, false otherwise.
static bool ogdf::GraphIO::writeTLP ( const ClusterGraphAttributes A,
ostream &  os 
)
static

Writes graph with attributes A in TLP format to output stream os.

Parameters
Aspecifies the clustered graph and its attributes to be written.
osis the output stream to which the clustered graph will be written.
Returns
true if successful, false otherwise.

Member Data Documentation

char ogdf::GraphIO::s_indentChar
staticprivate

Character used for indentation.

Definition at line 2930 of file GraphIO.h.

int ogdf::GraphIO::s_indentWidth
staticprivate

Number of indent characters used for indentation.

Definition at line 2931 of file GraphIO.h.

SVGSettings ogdf::GraphIO::svgSettings
static

Definition at line 2927 of file GraphIO.h.


The documentation for this class was generated from the following file: