Package com.jgalgo.alg.tree
Interface TreePathMaxima.IResult
- All Superinterfaces:
TreePathMaxima.Result<Integer,Integer>
- Enclosing interface:
TreePathMaxima
A result object for
TreePathMaxima algorithm for IntGraph.- Author:
- Barak Ugav
-
Method Summary
Modifier and TypeMethodDescriptiondefault IntegergetHeaviestEdge(int queryIdx) Deprecated.intgetHeaviestEdgeInt(int queryIdx) Get the heaviest edge found for a single query.Methods inherited from interface com.jgalgo.alg.tree.TreePathMaxima.Result
size
-
Method Details
-
getHeaviestEdgeInt
int getHeaviestEdgeInt(int queryIdx) Get the heaviest edge found for a single query.This result object was obtained by calling
TreePathMaxima.computeHeaviestEdgeInTreePaths(Graph, WeightFunction, Queries), which accept a set of multiple queries using theTreePathMaxima.IQueriesobject. This method return the answer to a single queries among them, by its index.- Parameters:
queryIdx- the index of the query \((u, v)\) in theTreePathMaxima.IQueriesobject passed toTreePathMaxima.computeHeaviestEdgeInTreePaths(Graph, WeightFunction, Queries)- Returns:
- the edge identifier of the heaviest on the path from \(u\) to \(v\) (the query vertices) in
the tree passed to the algorithm, or
-1if no such path exists
-
getHeaviestEdge
Deprecated.Please usegetHeaviestEdgeInt(int)instead to avoid un/boxing.Get the heaviest edge found for a single query.This result object was obtained by calling
TreePathMaxima.computeHeaviestEdgeInTreePaths(Graph, WeightFunction, Queries), which accept a set of multiple queries using theTreePathMaxima.IQueriesobject. This method return the answer to a single queries among them, by its index.- Specified by:
getHeaviestEdgein interfaceTreePathMaxima.Result<Integer,Integer> - Parameters:
queryIdx- the index of the query \((u, v)\) in theTreePathMaxima.IQueriesobject passed toTreePathMaxima.computeHeaviestEdgeInTreePaths(Graph, WeightFunction, Queries)- Returns:
- the edge identifier of the heaviest on the path from \(u\) to \(v\) (the query vertices) in
the tree passed to the algorithm, or
-1if no such path exists
-
getHeaviestEdgeInt(int)instead to avoid un/boxing.