Class NodeQueries
-
- All Implemented Interfaces:
-
com.expediagroup.graphql.server.operations.Query
public final class NodeQueries<T extends Object, P extends Position<out P>> implements Query
Set of GraphQL queries to compute on nodes.
-
-
Constructor Summary
Constructors Constructor Description NodeQueries(Environment<T, P> environment)
-
Method Summary
Modifier and Type Method Description final PositionSurrogate
nodePosition(Integer nodeId)
Returns the node position in sapce. final NeighborhoodSurrogate<T>
neighborhood(Integer nodeId)
Returns the neighborhood with the provided node as a center. -
-
Constructor Detail
-
NodeQueries
NodeQueries(Environment<T, P> environment)
-
-
Method Detail
-
nodePosition
final PositionSurrogate nodePosition(Integer nodeId)
Returns the node position in sapce.
- Parameters:
nodeId
- the node id- Returns:
the position in space of the given node
-
neighborhood
final NeighborhoodSurrogate<T> neighborhood(Integer nodeId)
Returns the neighborhood with the provided node as a center.
- Parameters:
nodeId
- the neighborhood center's node id.- Returns:
the neighborhood with this node as a center
-
-
-
-