---
name: "Graph.h"
section: "3tulip"
platform: "linux"
package: "tulip-doc"
version: "3.1.2-2.3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Graph.h"
---

# Graph.h(3tulip)

## NAME

Graph.h -

## SYNOPSIS

`#include <iostream>`\
 `#include <string>`\
 `#include <hash_map>`\
 `#include <climits>`\
 `#include 'tulip/tulipconf.h'`\
 `#include 'tulip/Reflect.h'`\
 `#include 'tulip/PluginContext.h'`\
 `#include 'tulip/PluginProgress.h'`\
 `#include 'tulip/Node.h'`\
 `#include 'tulip/Edge.h'`\
 `#include 'tulip/Observable.h'`\
 `#include 'tulip/ObservableGraph.h'`\
 `#include 'cxx/Graph.cxx'`\

### Classes

class **tlp::Graph**\
 *Interface for a graph.*

### Namespaces

namespace **tlp**\

### Enumerations

enum **tlp::ElementType** { **tlp::NODE** = 0, **tlp::EDGE** }\

### Functions

TLP\_SCOPE Graph \* **tlp::loadGraph** (const std::string &filename)\
 TLP\_SCOPE bool **tlp::saveGraph** (Graph \*, const std::string &filename)\
 TLP\_SCOPE Graph \* **tlp::importGraph** (const std::string &alg, DataSet &dataSet, PluginProgress \*plugProgress=0, Graph \*newGraph=0)\
 TLP\_SCOPE bool **tlp::exportGraph** (Graph \*graph, std::ostream &os, const std::string &alg, DataSet &dataSet, PluginProgress \*plugProgress=0)\
 TLP\_SCOPE bool **tlp::applyAlgorithm** (Graph \*graph, std::string &errorMsg, DataSet \*dataSet=0, const std::string &alg='hierarchical', PluginProgress \*plugProgress=0)\
 TLP\_SCOPE Graph \* **tlp::newGraph** ()\
 TLP\_SCOPE Graph \* **tlp::newSubGraph** (Graph \*, std::string name='unnamed')\
 TLP\_SCOPE Graph \* **tlp::newCloneSubGraph** (Graph \*, std::string name='unnamed')\
 TLP\_SCOPE bool **tlp::getSource** (Graph \*, node &n)\
 TLP\_SCOPE void **tlp::copyToGraph** (Graph \*outG, Graph \*inG, BooleanProperty \*inSelection=0, BooleanProperty \*outSelection=0)\
 TLP\_SCOPE void **tlp::removeFromGraph** (Graph \*ioG, BooleanProperty \*inSelection=0)\
 TLP\_SCOPE std::ostream & **operator\<\<** (std::ostream &, const **tlp::Graph** \*)\
 *Print the graph (only nodes and edges) in ostream, in the tulip format.*

## Function Documentation

### TLP\_SCOPE std::ostream& operator\<\< (std::ostream &, const tlp::Graph \*)

Print the graph (only nodes and edges) in ostream, in the tulip format.

## Author

Generated automatically by Doxygen for Tulip Graph Library from the source code.
