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 classSpectrum.EigenValuesAlgorithm -
Constructor Summary
Constructors Constructor Description Spectrum() -
Method Summary
Modifier and Type Method Description voidcompute()Run the algorithm.StringdefaultResult()doublegetEigenvalue(int i)double[]getEigenvalues()intgetEigenvaluesCount()double[]getEigenvector(int i)doublegetLargestEigenvalue()voidinit(org.graphstream.graph.Graph graph)Initialization of the algorithm.static voidmain(String... args)
-
Constructor Details
-
Spectrum
public Spectrum()
-
-
Method Details
-
init
public void init(org.graphstream.graph.Graph graph)Description copied from interface:AlgorithmInitialization 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:AlgorithmRun the algorithm. TheAlgorithm.init(Graph)method has to be called before computing.- Specified by:
computein 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
-