\Trismegiste\Mondrian\AnalysisDependCentrality

This tool helps you to find an effect on some components:

  • The bottleneck effect Do you remeber this project where everytime you made a change somewhere, THAT class need to be modified too ? The "dependRank" method finds this kind of problems. It searchs for the depencencies, but not only direct dependencies but also the combination of dependencies accross all the vertices of a digraph. My recomandation : abstract this component first : make multiple interfaces, explode it with strategy pattern, decorator, CoR etc... All bugs are "drown" to this component like a blackhole.

Summary

Methods
Properties
Constants
__construct()
addEdge()
addVertex()
getEdgeSet()
getVertexSet()
searchEdge()
getSuccessor()
getEdgeIterator()
getPartition()
decorate()
No public properties found
No constants found
addCentralityRank()
$graph
N/A
No private methods found
No private properties found
N/A

Properties

$graph

$graph : 

Type

Methods

getEdgeSet()

getEdgeSet() : array

Get the edges set

Returns

array

getVertexSet()

getVertexSet() : array

Get the vertices in the graph

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

decorate()

decorate() 

Add dependency centrality information on each vertex (edge effect on this digraph)

addCentralityRank()

addCentralityRank(\Trismegiste\Mondrian\Graph\Graph  $g, string  $metaName) 

General method to calculate centrality with the power iteration algo

Parameters

\Trismegiste\Mondrian\Graph\Graph $g
string $metaName

the key of the metadata name to set in vertices