Gliph\Graph\DirectedAdjacencyList::arcsFrom PHP Method

arcsFrom() public method

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