org.graphstream.algorithm
Class Spectrum

java.lang.Object
  extended by org.graphstream.algorithm.Spectrum
All Implemented Interfaces:
Algorithm

public class Spectrum
extends Object
implements Algorithm


Nested Class Summary
static class Spectrum.EigenValuesAlgorithm
           
 
Constructor Summary
Spectrum()
           
 
Method Summary
 void compute()
          Run the algorithm.
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spectrum

public Spectrum()
Method Detail

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.