Gliph\Graph\MutableVertexSet::ensureVertex PHP Method

ensureVertex() public method

Gliph requires that its graph vertices be objects; beyond that, it does not care about vertex type.
public ensureVertex ( object $vertex ) : Gliph\Graph\Graph
$vertex object An object to use as a vertex in the graph.
return Gliph\Graph\Graph The current graph instance.
    public function ensureVertex($vertex);