public function generateCoupledClassGraph()
{
if (is_null($this->strategy)) {
throw new \LogicException('No defined strategy');
}
$vSet = $this->graph->getVertexSet();
foreach ($vSet as $src) {
if ($src instanceof ClassVertex) {
foreach ($vSet as $dst) {
if ($dst instanceof ClassVertex && $dst !== $src) {
$this->resetVisited();
$path = $this->searchPath($src, $dst);
$this->strategy->collapseEdge($src, $dst, $path);
}
}
}
}
}