The spectrum module

Spectrum class.

class hcga.features.spectrum.Spectrum(graph=None)[source]

Spectrum class.

Features based on the eigenvectors and eigenvalues of the graph.

The features here are derived from spectral graph theory 1.

References

1

Cvetkovic, Dragos, et al. Eigenspaces of graphs. No. 66. Cambridge University Press, 1997.

Initialise a feature class.

Parameters

graph (Graph) – graph for initialisation, converted to given encoding

compute_features()[source]

Main feature extraction function.

This function should be used by each specific feature class to add new features.