partial_hype: Generate A Partial Hypergraph

View source: R/transform_hype.R

partial_hypeR Documentation

Generate A Partial Hypergraph

Description

A partial hypergraph can be induced from a set of hyperedges. The partial hypergraph has all of the original vertices, but only the hyperedges used to induce it.

Usage

partial_hype(hype, hyperedges)

Arguments

hype

A hypergraph object.

hyperedges

A vector of the names of the hyperedges to be used to induce the partial hypergraph.

Value

A hypergraph object of the partial hypergraph.

Examples

hype <- example_hype()
partial_hype(hype, c("h1", "h2"))

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