topobench.transforms.liftings.graph2combinatorial package#

Submodules#

topobench.transforms.liftings.graph2combinatorial.base module#

Abstract class for lifting graphs to combinatorial complexes.

class topobench.transforms.liftings.graph2combinatorial.base.Graph2CombinatorialLifting(**kwargs)[source]#

Bases: GraphLifting

Abstract class for lifting graphs to combinatorial complexes.

Parameters:
**kwargsoptional

Additional arguments for the class.

topobench.transforms.liftings.graph2combinatorial.graph_induced_cc module#

GraphInducedCC lifting of graphs to combinatorial complexes.

class topobench.transforms.liftings.graph2combinatorial.graph_induced_cc.GraphTriangleInducedCC(**kwargs)[source]#

Bases: Graph2CombinatorialLifting

Lift graph to combinatorial complexes.

Parameters:
**kwargsoptional

Additional arguments for the class.

lift_topology(data: Data) Data | dict[source]#

Lift the topology of a graph to a combinatorial complex.

Parameters:
datatorch_geometric.data.Data

The input data to be lifted.

Returns:
dict

The lifted topology.

topobench.transforms.liftings.graph2combinatorial.graph_induced_cc.build_paths(overlap_pairs)[source]#

Find overlapint sequesnces.

Parameters:
overlap_pairslist

List of pairs of overlapping triangles.

Returns:
list

List of sequences of overlaping triangles.

topobench.transforms.liftings.graph2combinatorial.graph_induced_cc.find_overlapping_paths(lists)[source]#

Find ovelaping triabgles and their seuqences.

Parameters:
listslist

List of triangles.

Returns:
list

List of sequences of overlaping triangles.

Module contents#

Graph2Combinatorial liftings with automated exports.

class topobench.transforms.liftings.graph2combinatorial.Graph2CombinatorialLifting(**kwargs)[source]#

Bases: GraphLifting

Abstract class for lifting graphs to combinatorial complexes.

Parameters:
**kwargsoptional

Additional arguments for the class.

class topobench.transforms.liftings.graph2combinatorial.GraphTriangleInducedCC(**kwargs)#

Bases: Graph2CombinatorialLifting

Lift graph to combinatorial complexes.

Parameters:
**kwargsoptional

Additional arguments for the class.

lift_topology(data: Data) Data | dict#

Lift the topology of a graph to a combinatorial complex.

Parameters:
datatorch_geometric.data.Data

The input data to be lifted.

Returns:
dict

The lifted topology.