View source: R/methods-Hyperedge.R
l2hel | R Documentation |
Conveniently create lists of Hyperedge-class
instances.
l2hel(e)
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. |
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.
Seth Falcon
Hyperedge-class
Hypergraph-class
edges <- list("e1"="A", "e2"=c("A", "B"), "e3"=c("C", "D"))
hEdgeList <- l2hel(edges)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.