PHP Класс Doctrine\OrientDB\Graph\Vertex

Наследование: implements Doctrine\OrientDB\Graph\VertexInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$connections
$id
$passed
$potential
$potentialFrom

Открытые методы

Метод Описание
__construct ( mixed $id ) Instantiates a new vertex, requiring a ID to avoid collisions.
connect ( Doctrine\OrientDB\Graph\VertexInterface $vertex, integer $distance = 1 ) Connects the vertex to another $vertex.
getConnections ( ) : Array Returns the connections of the current vertex.
getId ( ) : mixed Returns the identifier of this vertex.
getPotential ( ) : integer Returns vertex's potential.
getPotentialFrom ( ) : Doctrine\OrientDB\Graph\Vertex Returns the vertex which gave to the current vertex its potential.
isPassed ( ) : boolean Returns whether the vertex has passed or not.
markPassed ( ) Marks this vertex as passed, meaning that, in the scope of a graph, he has already been processed in order to calculate its potential.
setPotential ( integer $potential, Doctrine\OrientDB\Graph\VertexInterface $from ) : boolean Sets the potential for the vertex, if the vertex has no potential or the one it has is higher than the new one.

Описание методов

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

Instantiates a new vertex, requiring a ID to avoid collisions.
public __construct ( mixed $id )
$id mixed

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

A $distance, to balance the connection, can be specified.
public connect ( Doctrine\OrientDB\Graph\VertexInterface $vertex, integer $distance = 1 )
$vertex Doctrine\OrientDB\Graph\VertexInterface
$distance integer

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

Returns the connections of the current vertex.
public getConnections ( ) : Array
Результат Array

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

Returns the identifier of this vertex.
public getId ( ) : mixed
Результат mixed

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

Returns vertex's potential.
public getPotential ( ) : integer
Результат integer

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

Returns the vertex which gave to the current vertex its potential.
public getPotentialFrom ( ) : Doctrine\OrientDB\Graph\Vertex
Результат Doctrine\OrientDB\Graph\Vertex

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

Returns whether the vertex has passed or not.
public isPassed ( ) : boolean
Результат boolean

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

Marks this vertex as passed, meaning that, in the scope of a graph, he has already been processed in order to calculate its potential.
public markPassed ( )

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

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
Результат boolean

Описание свойств

$connections защищенное свойство

protected $connections

$id защищенное свойство

protected $id

$passed защищенное свойство

protected $passed

$potential защищенное свойство

protected $potential

$potentialFrom защищенное свойство

protected $potentialFrom