2017 © Pedro Peláez
 

library graphviz

GraphViz graph drawing for mathematical graph/network

image

iipokypatop/graphviz

GraphViz graph drawing for mathematical graph/network

  • Friday, February 19, 2016
  • by iipokypatop
  • Repository
  • 1 Watchers
  • 0 Stars
  • 481 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 11 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

graphp/graphviz Build Status

GraphViz graph drawing for mathematical graph/network, (*1)

The library supports visualizing graph images, including them into webpages, opening up images from within CLI applications and exporting them as PNG, JPEG or SVG file formats (among many others). Because graph drawing is a complex area on its own, the actual layouting of the graph is left up to the excelent GraphViz "Graph Visualization Software" and we merely provide some convenient APIs to interface with GraphViz., (*2)

Note: This project is in beta stage! Feel free to report any issues you encounter., (*3)

Quickstart examples

Once installed, let's build and display a sample graph:, (*4)

$graph = new Fhaculty\Graph\Graph();

$blue = $graph->createVertex('blue');
$blue->setAttribute('graphviz.color', 'blue');

$red = $graph->createVertex('red');
$red->setAttribute('graphviz.color', 'red');

$edge = $blue->createEdgeTo($red);
$edge->setAttribute('graphviz.color', 'grey');

$graphviz = new Graphp\GraphViz\GraphViz();
$graphviz->display($graph);

The above code will open your default image viewer with the following image:, (*5)

red-blue, (*6)

Install

The recommended way to install this library is through composer. New to composer?, (*7)

{
    "require": {
        "graphp/graphviz": "~0.2.0"
    }
}

In order to be able to use the graph drawing feature you'll have to install GraphViz (dot executable). Users of Debian/Ubuntu-based distributions may simply invoke sudo apt-get install graphviz, Windows users have to download GraphViZ for Windows and remaining users should install from GraphViz homepage., (*8)

License

Released under the terms of the permissive MIT license., (*9)

The Versions

19/02 2016

dev-develop

dev-develop https://github.com/graphp/graphviz

GraphViz graph drawing for mathematical graph/network

  Sources   Download

MIT

The Requires

 

The Development Requires

graphviz graph drawing graph image dot output

19/02 2016

dev-master

9999999-dev https://github.com/graphp/graphviz

GraphViz graph drawing for mathematical graph/network

  Sources   Download

MIT

The Requires

 

The Development Requires

graphviz graph drawing graph image dot output

08/03 2015

v0.2.1

0.2.1.0 https://github.com/graphp/graphviz

GraphViz graph drawing for mathematical graph/network

  Sources   Download

MIT

The Requires

 

The Development Requires

graphviz graph drawing graph image dot output

20/01 2015

v0.2.0

0.2.0.0 https://github.com/graphp/graphviz

GraphViz graph drawing for mathematical graph/network

  Sources   Download

MIT

The Requires

 

The Development Requires

graphviz graph drawing graph image dot output

31/12 2014

v0.1.0

0.1.0.0 https://github.com/graphp/graphviz

GraphViz graph drawing for mathematical graph/network

  Sources   Download

MIT

The Requires

 

The Development Requires

graphviz graph drawing graph image dot output