Uses of Interface
com.jgalgo.graph.IWeightFunction
-
Packages that use IWeightFunction Package Description com.jgalgo.alg Algorithms for solving graph problems.com.jgalgo.graph Graphs object are the fundamental building blocks of the JGAlgo library. -
-
Uses of IWeightFunction in com.jgalgo.alg
Methods in com.jgalgo.alg with parameters of type IWeightFunction Modifier and Type Method Description IPath
ShortestPathHeuristicST. computeShortestPath(IntGraph g, IWeightFunction w, int source, int target, IntToDoubleFunction vHeuristic)
Compute the shortest path between two vertices in an int graph. -
Uses of IWeightFunction in com.jgalgo.graph
Subinterfaces of IWeightFunction in com.jgalgo.graph Modifier and Type Interface Description interface
IWeightFunctionInt
Weight function that maps graph edges or vertices ofIntGraph
to integer weights.interface
IWeightsByte
Specific weights ofbyte
for int graphs.interface
IWeightsDouble
Specific weights ofdouble
for int graphs.interface
IWeightsFloat
Specific weights offloat
for int graphs.interface
IWeightsInt
Specific weights ofint
for int graphs.interface
IWeightsLong
Specific weights oflong
for int graphs.interface
IWeightsShort
Specific weights ofshort
for int graphs.Methods in com.jgalgo.graph that return IWeightFunction Modifier and Type Method Description static IWeightFunction
WeightFunctions. asIntGraphWeightFunc(WeightFunction<Integer> w)
Treat a given weight function as a weight function on a graph with integer vertices.static <K> IWeightFunction
IndexIdMaps. idToIndexWeightFunc(WeightFunction<K> w, IndexIdMap<K> map)
Create a weight function that accept elements indices, given a weight function that accept elements IDs.static IWeightFunction
WeightFunctions. localEdgeWeightFunction(IndexGraph g, IWeightFunction w)
Get a 'local' version of a given weight function.static IWeightFunction
WeightFunctions. negate(IWeightFunction w)
Get a weight function that returns the negative of the given weight function.static IWeightFunction
IWeightFunction. replaceNullWeightFunc(IWeightFunction weightFunc)
Replacenull
weight function withCardinalityWeightFunction
.Methods in com.jgalgo.graph with parameters of type IWeightFunction Modifier and Type Method Description static IWeightFunction
WeightFunctions. localEdgeWeightFunction(IndexGraph g, IWeightFunction w)
Get a 'local' version of a given weight function.static IWeightFunction
WeightFunctions. negate(IWeightFunction w)
Get a weight function that returns the negative of the given weight function.static IWeightFunction
IWeightFunction. replaceNullWeightFunc(IWeightFunction weightFunc)
Replacenull
weight function withCardinalityWeightFunction
.static double
IWeightFunction. weightSum(IWeightFunction weightFunc, IntIterable elements)
Get the sum of the weights of multiple elements.
-