The basic statistics module

Basic stats class.

class hcga.features.basic_stats.BasicStats(graph=None)[source]

Basic stats class.

Here we compute basic measures statistics of the graphs, e.g. number of nodes.

References

1

Mark E. J. Newman. Networks: An Introduction. Oxford University Press, USA, 2010, pp. 169.

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.

hcga.features.basic_stats.density(graph)[source]
hcga.features.basic_stats.diameter(graph)[source]
hcga.features.basic_stats.edge_weights(graph)[source]
hcga.features.basic_stats.n_edges(graph)[source]
hcga.features.basic_stats.n_nodes(graph)[source]
hcga.features.basic_stats.radius(graph)[source]