Package me.lucko.luckperms.common.graph
Interface Graph<N>
- Type Parameters:
N- the node parameter type
- All Known Implementing Classes:
InheritanceGraph
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A minimal functional interface for graph-structured data.
-
Method Summary
Modifier and TypeMethodDescriptionsuccessors(N node) Returns all nodes in this graph directly adjacent tonodewhich can be reached by traversingnode's outgoing edges.traverse(TraversalAlgorithm algorithm, N startNode) Returns an iterable which will traverse this graph using the specified algorithm starting at the given node.
-
Method Details
-
successors
Returns all nodes in this graph directly adjacent tonodewhich can be reached by traversingnode's outgoing edges.- Throws:
IllegalArgumentException- ifnodeis not an element of this graph
-
traverse
Returns an iterable which will traverse this graph using the specified algorithm starting at the given node.- Parameters:
algorithm- the algorithm to use when traversingstartNode- the start node in the inheritance graph- Returns:
- an iterable
-