PHP 인터페이스 Doctrine\OrientDB\Graph\VertexInterface

파일 보기 프로젝트 열기: doctrine/orientdb-odm 0 사용 예제들

공개 메소드들

메소드 설명
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 ( ) : 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.

메소드 상세

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 ( ) : Vertex
리턴 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