org.graphstream.algorithm
Class Spectrum
java.lang.Object
org.graphstream.algorithm.Spectrum
- All Implemented Interfaces:
- Algorithm
public class Spectrum
- extends Object
- implements Algorithm
Spectrum
public Spectrum()
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 the
Algorithm.compute()
method to initialize or reset the algorithm according
to the new given graph.
- Specified by:
init
in interface Algorithm
- Parameters:
graph
- The graph this algorithm is using.
compute
public void compute()
- Description copied from interface:
Algorithm
- Run the algorithm. The
Algorithm.init(Graph)
method has to be called
before computing.
- Specified by:
compute
in interface Algorithm
- 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()
main
public static void main(String... args)
Copyright © 2013. All Rights Reserved.