support_graph: Find The Support Graph Of A Hypergraph

View source: R/support_graphs.R

support_graphR Documentation

Find The Support Graph Of A Hypergraph

Description

The support graph of a hypergraph is a graph that has a vertex for every vertex in the hypergraph. Two vertices are connected in the support graph if there is a hyperedge that connects them.

Usage

support_graph(hype, simple = TRUE)

Arguments

hype

A hypergraph object.

simple

Whether a simplified support graph should be created.

Details

If simple is set to FALSE then for unweighted hypergraphs without real coefficients the support graph has an edge connected vertices for each hyperedge connecting them in the hypergraph.

Value

The support graph of the hypergraph

Examples

hype <- example_hype()
g <- support_graph(hype)
print(g)
plot(g)

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