cardinality: Find The Cardinality Of Hyperedges In A Hypergraph

View source: R/degree.R

cardinalityR Documentation

Find The Cardinality Of Hyperedges In A Hypergraph

Description

The cardinality of a hyperedge is the number of vertices that it contains.

Usage

cardinality(hype)

Arguments

hype

A hypergraph object.

Value

A vector of the cardinality of the hyperedges.

Examples

hype <- example_hype()
cardinality(hype)

hwarden162/hyper documentation built on Sept. 15, 2022, 5:21 a.m.