Modifier and Type | Class and Description |
---|---|
static class |
Spectrum.EigenValuesAlgorithm |
Modifier and Type | Field and Description |
---|---|
protected EigenDecomposition |
decomposition |
protected Graph |
graph |
protected Spectrum.EigenValuesAlgorithm |
mode |
Constructor and Description |
---|
Spectrum() |
Modifier and Type | Method and Description |
---|---|
void |
compute()
Run the algorithm.
|
double |
getEigenvalue(int i) |
double[] |
getEigenvalues() |
int |
getEigenvaluesCount() |
double[] |
getEigenvector(int i) |
double |
getLargestEigenvalue() |
void |
init(Graph graph)
Initialization of the algorithm.
|
static void |
main(String... args) |
protected Spectrum.EigenValuesAlgorithm mode
protected EigenDecomposition decomposition
public Spectrum()
public void init(Graph graph)
Algorithm
Algorithm.compute()
method to initialize or reset the algorithm according
to the new given graph.public void compute()
Algorithm
Algorithm.init(Graph)
method has to be called
before computing.compute
in interface Algorithm
Algorithm.init(Graph)
public int getEigenvaluesCount()
public double getEigenvalue(int i)
public double[] getEigenvalues()
public double[] getEigenvector(int i)
public double getLargestEigenvalue()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses