\Trismegiste\Mondrian\AnalysisCouplingMaker

CouplingMaker searches for interface with class in its methods parameters.

This is bad because each time you inherit from these interface, you create coupling between concrete classes and god kills a kitten.

That's why these interfaces are literally "coupling generators", this is a seed for spaghetti coupling.

Summary

Methods
Properties
Constants
__construct()
addEdge()
addVertex()
getEdgeSet()
getVertexSet()
searchEdge()
getSuccessor()
getEdgeIterator()
getPartition()
createReducedGraph()
No public properties found
No constants found
No protected methods found
$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

createReducedGraph()

createReducedGraph() : \Trismegiste\Mondrian\Graph\Graph

Creates a new reduced graph from this Graph

Returns

\Trismegiste\Mondrian\Graph\Graph