\GraphDS\VertexVertex

Class defining a generic, extendable vertex object.

Summary

Methods
Properties
Constants
__construct()
getValue()
setValue()
$neighbors
No constants found
No protected methods found
$value
N/A
No private methods found
No private properties found
N/A

Properties

$neighbors

$neighbors : array

Array holding references to all neighboring vertices of this vertex.

Type

array

$value

$value : mixed

Variable holding the value of this vertex.

Type

mixed

Methods

__construct()

__construct() 

Constructor for general Vertex object.

getValue()

getValue() : mixed

Gets the value associated with this vertex.

Returns

mixed —

Value associated with this vertex

setValue()

setValue(mixed  $value = null) 

Sets the value associated with this vertex.

Parameters

mixed $value

Value to be associated with this vertex