topobench.transforms.liftings.hypergraph2combinatorial package#

Submodules#

topobench.transforms.liftings.hypergraph2combinatorial.base module#

Abstract class for lifting hypergraphs to combinatorial complexes.

class topobench.transforms.liftings.hypergraph2combinatorial.base.Hypergraph2CombinatorialLifting(**kwargs)[source]#

Bases: HypergraphLifting

Abstract class for lifting hypergraphs to combinatorial complexes.

Parameters:
**kwargsoptional

Additional arguments for the class.

topobench.transforms.liftings.hypergraph2combinatorial.universal_strict_lifting module#

Universal strict lifting of hypergraphs to combinatorial complexes.

class topobench.transforms.liftings.hypergraph2combinatorial.universal_strict_lifting.UniversalStrictLifting(**kwargs)[source]#

Bases: Hypergraph2CombinatorialLifting

Lift hypergraphs to combinatorial complexes.

It works by assinging the smallest rank values such that subcells of any cell have strictly smaller rank.

Parameters:
**kwargsoptional

Additional arguments for the class.

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

Lift the topology of a hypergraph to a combinatorial complex.

It works by setting the rank of a hyperedge equal to the maximum of the ranks of its sub-hyperedges plus 1.

Parameters:
datatorch_geometric.data.Data

The input data to be lifted.

Returns:
dict

The lifted topology.

Module contents#

Hypergraph2Combinatorial liftings with automated exports.

class topobench.transforms.liftings.hypergraph2combinatorial.Hypergraph2CombinatorialLifting(**kwargs)[source]#

Bases: HypergraphLifting

Abstract class for lifting hypergraphs to combinatorial complexes.

Parameters:
**kwargsoptional

Additional arguments for the class.

class topobench.transforms.liftings.hypergraph2combinatorial.UniversalStrictLifting(**kwargs)#

Bases: Hypergraph2CombinatorialLifting

Lift hypergraphs to combinatorial complexes.

It works by assinging the smallest rank values such that subcells of any cell have strictly smaller rank.

Parameters:
**kwargsoptional

Additional arguments for the class.

lift_topology(data: Data) Data | dict#

Lift the topology of a hypergraph to a combinatorial complex.

It works by setting the rank of a hyperedge equal to the maximum of the ranks of its sub-hyperedges plus 1.

Parameters:
datatorch_geometric.data.Data

The input data to be lifted.

Returns:
dict

The lifted topology.