Download the PHP package graphp/graphml without Composer
On this page you can find all versions of the php package graphp/graphml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download graphp/graphml
More information about graphp/graphml
Files in graphp/graphml
Package graphml
Short Description GraphML is an XML-based file format for graphs
License MIT
Homepage https://github.com/graphp/graphml
Informations about the package graphml
graphp/graphml
GraphML is an XML-based file format for graphs
Note: This project is in early beta stage! Feel free to report any issues you encounter.
Table of contents
- Usage
- Exporter
- getOutput()
- Loader
- loadContents()
- Install
- Tests
- License
Usage
Exporter
getOutput()
The getOutput(Graph $graph): string
method can be used to
export the given graph instance.
This method only supports exporting the basic graph structure, with all vertices and directed and undirected edges.
Note that none of the attributes attached to any objects nor any of the "advanced concepts" of GraphML (Nested Graphs, Hyperedges and Ports) are currently implemented. We welcome PRs!
Loader
loadContents()
The loadContents(string $contents): Graph
method can be used to
load a graph instance from the given GraphML contents.
This method supports loading the graph, all vertices and directed and undirected edges among with any attributes attached from the GraphML source.
Note that neither of the "advanced concepts" of GraphML (Nested Graphs, Hyperedges and Ports) are currently implemented. We welcome PRs!
Install
The recommended way to install this library is through composer. New to composer?
This project aims to run on any platform and thus does not require any PHP extensions and supports running on legacy PHP 5.3 through current PHP 7+ and HHVM. It's highly recommended to use PHP 7+ for this project.
Tests
To run the test suite, you first need to clone this repo and then install all dependencies through Composer:
To run the test suite, go to the project root and run:
License
Released under the terms of the permissive MIT license.