MatchMakingLobby/Lobby/MatchMakers/AbstractDistance.php
protected function buildGraph(&$graph, $distanceComputeCallback, array $objects)
	{
		$graph = new Helpers\Graph();

		while($object = array_shift($objects))
		{
			$graph->addNode(
				$object,
				$this->computeDistances($object, $objects, $distanceComputeCallback)
				);
		}
	}
protected function buildGraph(&$graph, $distanceComputeCallback, array $objects)
	{
		$graph = new Helpers\Graph();

		while($object = array_shift($objects))
		{
			$graph->addNode(
				$object,
				$this->computeDistances($object, $objects, $distanceComputeCallback)
				);
		}
	}
protected function buildGraph ( & $ graph , $ distanceComputeCallback , array $ objects ) { $ graph = new Helpers \ Graph ( ) ; while ( $ object = array_shift ( $ objects ) ) { $ graph -> addNode ( $ object , $ this -> computeDistances ( $ object , $ objects , $ distanceComputeCallback ) ) ; } }
Create a graph where each ready player is a node
@param DistanciableObject[] $bannedPlayers
@return type
Create a graph where each ready player is a node