\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

Properties

Methods

__construct()

__construct(\GraphDS\Graph\Graph  $graph) 

Constructor for the graph exporter.

Parameters

\GraphDS\Graph\Graph $graph

The graph to be exported

Throws

\InvalidArgumentException

getGraphML()

getGraphML() : string

Returns the GraphML output representing the graph.

Returns

string

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