toponetx.ColoredHyperEdgeView#
- class toponetx.ColoredHyperEdgeView[source]#
Bases:
AtomView
A class for viewing the cells/hyperedges of a colored hypergraph.
Provides methods for accessing, and retrieving information about the cells/hyperedges of a complex.
Methods
get_rank
(edge)Get the rank of a given hyperedge.
skeleton
(rank[, store_hyperedge_key])Skeleton of the complex.
Examples
>>> hev = tnx.ColoredHyperEdgeView()
Methods
__init__
()get_rank
(edge)Get the rank of a given hyperedge.
skeleton
(rank[, store_hyperedge_key])Skeleton of the complex.
Attributes
- get_rank(edge)[source]#
Get the rank of a given hyperedge.
- Parameters:
- edgeIterable, Hashable or ColoredHyperEdge
The edge for which to get the rank.
- Returns:
- int
The rank of the given colored hyperedge.