Gliph\Graph\UndirectedAdjacencyList::incidentTo PHP Метод

incidentTo() публичный Метод

public incidentTo ( $vertex )
    public function incidentTo($vertex)
    {
        if (!$this->hasVertex($vertex)) {
            throw new NonexistentVertexException('Vertex is not in graph; cannot iterate over its incident edges.');
        }
        $set = $this->getTraversableSplos($this->vertices[$vertex]);
        foreach ($set as $adjacent_vertex) {
            (yield array($vertex, $adjacent_vertex));
        }
        $this->walking->detach($set);
    }