Path
in package
Represents a traversal path.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Path constructor.
- getEdges() : ArrayList
- Return all the path edges
- getVertices() : ArrayList
- Return all the path vertices
Properties
$edges
ArrayList with path edges
protected
ArrayList
$edges
$vertices
ArrayList with path vertices
protected
ArrayList
$vertices
Methods
__construct()
Path constructor.
public
__construct(array<string|int, mixed> $edges, array<string|int, mixed> $vertices) : mixed
Parameters
- $edges : array<string|int, mixed>
-
Path edges
- $vertices : array<string|int, mixed>
-
Path vertices
Tags
getEdges()
Return all the path edges
public
getEdges() : ArrayList
Return values
ArrayListgetVertices()
Return all the path vertices
public
getVertices() : ArrayList