Graph.findByValue

This will attempt to find the graph node which contains the provided value.

Value matching is based on applying the ==/opEquals() operator to each graph nodes' getValue() within the graph.

class Graph(T)
findByValue
(
T val
)

Parameters

val T

the value

Return Value

Type: Optional!(Graph!(T))

an optional containing the graph node if found, else an empty optional

Meta