The node connectivity module

Node connectivity class.

class hcga.features.node_connectivity.NodeConnectivity(graph=None)[source]

Node connectivity class.

Implementation of networkx code:

Networkx_node_connectivity

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.node_connectivity.node_conn(graph)[source]

calculating node connectivity