Package com.mastfrog.graph.algorithm
Class Algorithm<R,A extends Algorithm>
- java.lang.Object
-
- com.mastfrog.graph.algorithm.Algorithm<R,A>
-
- Direct Known Subclasses:
RankingAlgorithm
public abstract class Algorithm<R,A extends Algorithm> extends Object
- Author:
- Tim Boudreau
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlgorithm.BooleanParameter<A extends Algorithm>static classAlgorithm.DoubleParameter<A extends Algorithm>static classAlgorithm.IntParameter<A extends Algorithm>
-
Constructor Summary
Constructors Constructor Description Algorithm()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Rapply(IntGraph graph)protected static <A extends Algorithm>
Algorithm.BooleanParameter<A>createBooleanParameter(Class<A> alg, String name)protected static <A extends Algorithm>
Algorithm.DoubleParameter<A>createDoubleParameter(Class<A> alg, String name)protected static <A extends Algorithm>
Algorithm.IntParameter<A>createIntegerParameter(Class<A> alg, String name)static EigenvectorCentralityeigenvectorCentrality()static PageRankpageRank()AsetParameter(Algorithm.BooleanParameter<A> param, boolean value)AsetParameter(Algorithm.DoubleParameter<A> param, double value)AsetParameter(Algorithm.IntParameter<A> param, int value)StringtoString()
-
-
-
Method Detail
-
setParameter
public A setParameter(Algorithm.IntParameter<A> param, int value)
-
setParameter
public A setParameter(Algorithm.DoubleParameter<A> param, double value)
-
setParameter
public A setParameter(Algorithm.BooleanParameter<A> param, boolean value)
-
createDoubleParameter
protected static <A extends Algorithm> Algorithm.DoubleParameter<A> createDoubleParameter(Class<A> alg, String name)
-
createIntegerParameter
protected static <A extends Algorithm> Algorithm.IntParameter<A> createIntegerParameter(Class<A> alg, String name)
-
createBooleanParameter
protected static <A extends Algorithm> Algorithm.BooleanParameter<A> createBooleanParameter(Class<A> alg, String name)
-
eigenvectorCentrality
public static EigenvectorCentrality eigenvectorCentrality()
-
pageRank
public static PageRank pageRank()
-
-