Open
Graph Drawing
Framework

 v.2012.05
 

simple_graph_load.h
Go to the documentation of this file.
00001 /*
00002  * $Revision: 2299 $
00003  * 
00004  * last checkin:
00005  *   $Author: gutwenger $ 
00006  *   $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $ 
00007  ***************************************************************/
00008  
00041 #ifdef _MSC_VER
00042 #pragma once
00043 #endif
00044 
00045 #ifndef OGDF_SIMPLE_GRAPH_LOAD_H
00046 #define OGDF_SIMPLE_GRAPH_LOAD_H
00047 
00048 #include <ogdf/basic/Graph.h>
00049 #include <ogdf/basic/GridLayout.h>
00050 
00051 
00052 namespace ogdf { 
00053 
00055 
00065 OGDF_EXPORT bool loadRomeGraphStream(Graph &G, std::istream& fileStream);
00066 
00068 
00071 OGDF_EXPORT bool loadRomeGraph(Graph &G, const char *fileName);
00072 
00084 OGDF_EXPORT bool loadChacoStream(Graph &G, std::istream& fileStream);
00085 
00087 
00090 OGDF_EXPORT bool loadChacoGraph(Graph &G, const char *fileName);
00091 
00093 
00100 OGDF_EXPORT bool loadSimpleGraphStream(Graph &G, std::istream& fileStream);
00101 
00103 
00107 OGDF_EXPORT bool loadSimpleGraph(Graph &G, const char *fileName);
00108 
00110 
00126 OGDF_EXPORT bool loadYGraph(Graph &G, FILE *lineStream);
00127 
00129 
00144 OGDF_EXPORT bool loadBenchHypergraphStream(Graph &G, List<node>& hypernodes, List<edge>* shell, std::istream& fileStream);
00145 
00147 
00150 OGDF_EXPORT bool loadBenchHypergraph(Graph &G, List<node>& hypernodes, List<edge>* shell, const char *fileName);
00151 
00153 
00168 OGDF_EXPORT bool loadPlaHypergraphStream(Graph &G, List<node>& hypernodes, List<edge>* shell, std::istream& fileStream);
00169 
00171 
00174 OGDF_EXPORT bool loadPlaHypergraph(Graph &G, List<node>& hypernodes, List<edge>* shell, const char *fileName);
00175 
00176 
00178 OGDF_EXPORT bool loadEdgeListSubgraph(Graph &G, List<edge> &delEdges, const char *fileName);
00179 
00181 OGDF_EXPORT bool loadEdgeListSubgraph(Graph &G, List<edge> &delEdges, istream &is);
00182 
00184 OGDF_EXPORT bool saveEdgeListSubgraph(const Graph &G, const List<edge> &delEdges, const char *fileName);
00185 
00187 OGDF_EXPORT bool saveEdgeListSubgraph(const Graph &G, const List<edge> &delEdges, ostream &os);
00188 
00189 
00191 OGDF_EXPORT bool loadChallengeGraph(Graph &G, GridLayout &gl, const char *fileName);
00192 
00194 OGDF_EXPORT bool loadChallengeGraph(Graph &G, GridLayout &gl, istream &is);
00195 
00197 OGDF_EXPORT bool saveChallengeGraph(const Graph &G, const GridLayout &gl, const char *fileName);
00198 
00200 OGDF_EXPORT bool saveChallengeGraph(const Graph &G, const GridLayout &gl, ostream &os);
00201 
00202 
00203 }
00204 
00205 #endif //OGDF_SIMPLE_GRAPH_LOAD_H