Gliph\Graph\UndirectedAdjacencyList::degreeOf PHP Méthode

degreeOf() public méthode

public degreeOf ( $vertex )
    public function degreeOf($vertex)
    {
        if (!$this->hasVertex($vertex)) {
            throw new NonexistentVertexException('Vertex is not in the graph, in-degree information cannot be provided', E_WARNING);
        }
        return $this->vertices[$vertex]->count();
    }