\GraphDS\GraphGraph

Class defining a generic, extendable graph object.

Summary

Methods
Properties
Constants
__construct()
getVertexCount()
getEdgeCount()
$vertices
$edges
$directed
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$vertices

$vertices : array

An array holding all vertices of the graph.

Type

array

$edges

$edges : array

An array holding all edges of the graph.

Type

array

$directed

$directed : boolean

Defines whether the graph is directed or not.

Type

boolean

Methods

__construct()

__construct() 

Constructor for general Graph object.

getVertexCount()

getVertexCount() : integer

Returns the number of vertices in the graph.

Returns

integer —

Number of vertices in the graph

getEdgeCount()

getEdgeCount() : integer

Returns the number of edges in the graph.

Returns

integer —

Number of edges in the graph