dual_hype: Get The Dual Of A Hypergraph

View source: R/transform_hype.R

dual_hypeR Documentation

Get The Dual Of A Hypergraph

Description

The dual of a hypergraph has a vertex for each original hyperedge and a hyperedge for each original vertex. A vertex is a member of a hyperedge if the original hyperedge has the original vertex as a member.

Usage

dual_hype(hype)

Arguments

hype

A hypergraph object.

Value

A hypergraph object representing the dual of the hypergraph.

Examples

hype <- example_hype()
dual_hype(hype)

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