Package org.graphstream.algorithm
Class Spectrum
java.lang.Object
org.graphstream.algorithm.Spectrum
- All Implemented Interfaces:
Algorithm
public class Spectrum extends Object implements Algorithm
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Spectrum.EigenValuesAlgorithm
-
Constructor Summary
Constructors Constructor Description Spectrum()
-
Method Summary
Modifier and Type Method Description void
compute()
Run the algorithm.String
defaultResult()
double
getEigenvalue(int i)
double[]
getEigenvalues()
int
getEigenvaluesCount()
double[]
getEigenvector(int i)
double
getLargestEigenvalue()
void
init(org.graphstream.graph.Graph graph)
Initialization of the algorithm.static void
main(String... args)
-
Constructor Details
-
Spectrum
public Spectrum()
-
-
Method Details
-
init
public void init(org.graphstream.graph.Graph graph)Description copied from interface:Algorithm
Initialization of the algorithm. This method has to be called before theAlgorithm.compute()
method to initialize or reset the algorithm according to the new given graph. -
compute
public void compute()Description copied from interface:Algorithm
Run the algorithm. TheAlgorithm.init(Graph)
method has to be called before computing.- Specified by:
compute
in interfaceAlgorithm
- See Also:
Algorithm.init(Graph)
-
getEigenvaluesCount
public int getEigenvaluesCount() -
getEigenvalue
public double getEigenvalue(int i) -
getEigenvalues
public double[] getEigenvalues() -
getEigenvector
public double[] getEigenvector(int i) -
getLargestEigenvalue
public double getLargestEigenvalue() -
defaultResult
-
main
-