public function __construct() { parent::__construct(); $set = [new ClassVertex('Guess\\What\\I\\Draw'), new TraitVertex('Guess\\What\\I\\Draw'), new ImplVertex('Guess\\What\\I\\Draw::yop'), new MethodVertex('Guess\\What\\I\\Draw::yop'), new ParamVertex('Guess\\What\\I\\Draw::yop/0')]; for ($k = 0; $k < 5; $k++) { $this->addEdge($set[2 * $k % 5], $set[(2 * $k + 2) % 5]); } }