\GraphDS\EdgeEdge

Class defining a generic, extendable edge object.

Summary

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

Properties

$vertices

$vertices : array

$vertices An array of vertices associated with the edge.

Type

array

$value

$value : float

$value A value/weight held by the edge.

Type

float

Methods

__construct()

__construct() 

Constructor for general Edge object.

getValue()

getValue() : float

Returns value/weight associated with this edge.

Returns

float —

Value/weight associated with this edge

setValue()

setValue(float  $value = null) 

Sets the value/weight associated with this edge.

Parameters

float $value

Value/weight to be associated with this edge

getConnectedVertices()

getConnectedVertices() : array

Returns an array of vertices connected by this edge.

Returns

array —

Vertices connected by this edge