A sequence of graph elements that represents a path between two vertices.

See Also:

Extends

Methods

array

labels

( )

A sequence of string labels representing the path of graph elements between two vertices.

Returns:
Type Details
array

An array of arrays of string labels.

array

objects

( )

Gets an array of graph elements between the two vertices.

Returns:
Type Details
array

An array of graph results between the two vertices.

mixed

hasLabel

( )

Determines if the following path contains a label.

Returns:
Type Details
mixed
Graph\Result false

object

( string $key )

Get an object in the path with a particular label.

Parameters:
Name Type Details
$key string

A string label of an object.

Returns:
Type Details
Graph\Result|false

The graph element as a graph result or false if the label is not in the path.