Components modules

The components module

Components class.

class hcga.features.components.Components(graph=None)[source]

Components class.

Components calculations using network: Networkx_components

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.components.attracting_component_sizes(graph)[source]
hcga.features.components.basal_component_sizes(graph)[source]
hcga.features.components.condensation_edges(graph)[source]
hcga.features.components.condensation_nodes(graph)[source]
hcga.features.components.eval_connected_components(graph)[source]

this evaluates the main function and cach it for speed up.

hcga.features.components.largest_connected_component(graph)[source]

largest_connected_components

hcga.features.components.num_connected_components(graph)[source]
hcga.features.components.number_basal_components(graph)[source]
hcga.features.components.ratio_largest(graph)[source]
hcga.features.components.ratio_min_max(graph)[source]
hcga.features.components.strongly_connected_component_sizes(graph)[source]
hcga.features.components.weakly_connected_component_sizes(graph)[source]