# \GraphDS\PersistenceExportGraph

Class defining the graph exporter methods.

## Summary

Methods
Properties
Constants
__construct()
getGraphML()
saveToFile()
$graph
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

File
  Persistence/ExportGraph.php
Package
  Default
Class hierarchy
  \GraphDS\Persistence\ExportGraph

## Tags

None found

## Properties

### $graph

    $graph : \GraphDS\Graph\Graph

Reference to the graph.

#### Type

\GraphDS\Graph\Graph

#

## Tags

None found

## Methods

### __construct()

    __construct(\GraphDS\Graph\Graph  $graph)

Constructor for the graph exporter.

#### Parameters

\GraphDS\Graph\Graph | $graph | The graph to be exported

#### Throws

\InvalidArgumentException

#

Inherited from
  \GraphDS\Persistence\ExportGraph

## Tags

None found

### getGraphML()

    getGraphML() : string

Returns the GraphML output representing the graph.

#### Returns

string

#

Inherited from
  \GraphDS\Persistence\ExportGraph

## Tags

None found

### saveToFile()

    saveToFile(mixed  $data, string  $file)

Saves given data to a files.

#### Parameters

mixed | $data | The data to be saved
string | $file | Filename where the data should be saved to

#### Throws

\InvalidArgumentException

#

Inherited from
  \GraphDS\Persistence\ExportGraph

## Tags

None found

### ExportGraph.php