kmapper.GraphNerve

class kmapper.GraphNerve(min_intersection=1)[source]

Bases: kmapper.nerve.Nerve

Creates the 1-skeleton of the Mapper complex.

Parameters

min_intersection (int, default is 1) – Minimum intersection considered when computing the nerve. An edge will be created only when the intersection between two nodes is greater than or equal to min_intersection

__init__(min_intersection=1)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([min_intersection])

Initialize self.

compute(nodes)

Helper function to find edges of the overlapping clusters.

compute(nodes)[source]

Helper function to find edges of the overlapping clusters.

Parameters

nodes – A dictionary with entires {node id}:{list of ids in node}

Returns

  • edges – A 1-skeleton of the nerve (intersecting nodes)

  • simplicies – Complete list of simplices