\Trismegiste\Mondrian\GraphGraph

Design pattern: Decorator Component : Component

A generic graph

Summary

Methods
Constants
addVertex()
addEdge()
searchEdge()
getVertexSet()
getEdgeSet()
getSuccessor()
getEdgeIterator()
getPartition()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getVertexSet()

getVertexSet() : array

Get the vertices in the graph

Returns

array

getEdgeSet()

getEdgeSet() : array

Get the edges set

Returns

array

getSuccessor()

getSuccessor(\Trismegiste\Mondrian\Graph\Vertex  $v) : null|array

Get successors of a vertex

Parameters

\Trismegiste\Mondrian\Graph\Vertex $v

Returns

null|array —

null if the vertex is not in this graph

                    or an array of vertices

getEdgeIterator()

getEdgeIterator(\Trismegiste\Mondrian\Graph\Vertex  $v) : \Trismegiste\Mondrian\Graph\Iterator

Get an iterator on edges for one vertex

Parameters

\Trismegiste\Mondrian\Graph\Vertex $v

Returns

\Trismegiste\Mondrian\Graph\Iterator

getPartition()

getPartition() 

Returns a list of subgraph