l2hel: Create lists of Hyperedge objects

Description Usage Arguments Value Author(s) See Also Examples

View source: R/methods-Hyperedge.R

Description

Conveniently create lists of Hyperedge-class instances.

Usage

1
l2hel(e)

Arguments

e

A list of character vectors. Each element of the list represents a hyperedge and the character vector value specifies the nodes of the hypergraph that are part of the hyperedge. The names of the list elements, if found, will be used as the label for the corresponding Hyperedge object.

Value

A list of Hyperedge-class objects. If the list e did not have names, the labels of the Hyperedges will be set to its index in the list coerced to character.

Author(s)

Seth Falcon

See Also

Hyperedge-class Hypergraph-class

Examples

1
2
edges <- list("e1"="A", "e2"=c("A", "B"), "e3"=c("C", "D"))
hEdgeList <- l2hel(edges)

Example output

Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colMeans, colSums, colnames, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
    setdiff, sort, table, tapply, union, unique, unsplit, which,
    which.max, which.min

hypergraph documentation built on Nov. 8, 2020, 5:53 p.m.

Related to l2hel in hypergraph...