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 IPathShortestPathHeuristicST. 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 interfaceIWeightFunctionIntWeight function that maps graph edges or vertices ofIntGraphto integer weights.interfaceIWeightsByteSpecific weights ofbytefor int graphs.interfaceIWeightsDoubleSpecific weights ofdoublefor int graphs.interfaceIWeightsFloatSpecific weights offloatfor int graphs.interfaceIWeightsIntSpecific weights ofintfor int graphs.interfaceIWeightsLongSpecific weights oflongfor int graphs.interfaceIWeightsShortSpecific weights ofshortfor int graphs.Methods in com.jgalgo.graph that return IWeightFunction Modifier and Type Method Description static IWeightFunctionWeightFunctions. asIntGraphWeightFunc(WeightFunction<Integer> w)Treat a given weight function as a weight function on a graph with integer vertices.static <K> IWeightFunctionIndexIdMaps. idToIndexWeightFunc(WeightFunction<K> w, IndexIdMap<K> map)Create a weight function that accept elements indices, given a weight function that accept elements IDs.static IWeightFunctionWeightFunctions. localEdgeWeightFunction(IndexGraph g, IWeightFunction w)Get a 'local' version of a given weight function.static IWeightFunctionWeightFunctions. negate(IWeightFunction w)Get a weight function that returns the negative of the given weight function.static IWeightFunctionIWeightFunction. replaceNullWeightFunc(IWeightFunction weightFunc)Replacenullweight function withCardinalityWeightFunction.Methods in com.jgalgo.graph with parameters of type IWeightFunction Modifier and Type Method Description static IWeightFunctionWeightFunctions. localEdgeWeightFunction(IndexGraph g, IWeightFunction w)Get a 'local' version of a given weight function.static IWeightFunctionWeightFunctions. negate(IWeightFunction w)Get a weight function that returns the negative of the given weight function.static IWeightFunctionIWeightFunction. replaceNullWeightFunc(IWeightFunction weightFunc)Replacenullweight function withCardinalityWeightFunction.static doubleIWeightFunction. weightSum(IWeightFunction weightFunc, IntIterable elements)Get the sum of the weights of multiple elements.
-