Пример #1
0
 /**
  * Connects the vertex to another $vertex.
  * A $distance, to balance the connection, can be specified.
  *
  * @param Vertex $vertex
  * @param integer $distance
  */
 public function connect(VertexInterface $vertex, $distance = 1)
 {
     $this->connections[$vertex->getId()] = $distance;
 }