Package com.jgalgo.alg
Interface TreePathMaxima.IResult
-
- All Superinterfaces:
TreePathMaxima.Result<Integer,Integer>
- Enclosing interface:
- TreePathMaxima
public static interface TreePathMaxima.IResult extends TreePathMaxima.Result<Integer,Integer>
A result object forTreePathMaximaalgorithm forIntGraph.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default IntegergetHeaviestEdge(int queryIdx)Deprecated.intgetHeaviestEdgeInt(int queryIdx)Get the heaviest edge found for a single query.-
Methods inherited from interface com.jgalgo.alg.TreePathMaxima.Result
size
-
-
-
-
Method Detail
-
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 default Integer getHeaviestEdge(int queryIdx)
Deprecated.Description copied from interface:TreePathMaxima.ResultGet 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
-
-