Doctrine\OrientDB\Graph\VertexInterface::setPotential PHP Method

setPotential() public method

Sets the potential for the vertex, if the vertex has no potential or the one it has is higher than the new one.
public setPotential ( integer $potential, Doctrine\OrientDB\Graph\VertexInterface $from ) : boolean
$potential integer
$from Doctrine\OrientDB\Graph\VertexInterface
return boolean
    public function setPotential($potential, VertexInterface $from);