DirectedHyperedge-class {hypergraph} | R Documentation |
This class represents directed hyperedges in a
Hypergraph-class
. A directed hyperedge consists of two
disjount sets of nodes, those in the tail and those in the head of the
hyperedge. Directed hyperedges are sometimes called hyperarcs.
Objects can be created by calls of the form new("DirectedHyperedge", head, tail, label)
.
You can also use the convenience function DirectedHyperedge
.
tail
:Character vector of nodes in the tail of the hyperedge
head
:Character vector of nodes in the head of the hyperege
label
:Character string describing the directed hyperedge
Class "Hyperedge"
, directly.
signature(x = "DirectedHyperedge")
: Return a
vector containing the nodes in the head of the hyperedge
signature(x = "DirectedHyperedge")
: Return a
vector containing the nodes in the tail of the hyperedge
signature(.Object = "DirectedHyperedge")
:
Create a new instance.
signature(object = "DirectedHyperedge")
: Return
a vector containing all nodes present in the hyperedge.
signature(object = "DirectedHyperedge")
: Print me
signature(.Object = "DirectedHyperedge")
:
Return a Hyperedge-class
object that results from
coercing to an undirected hyperedge.
Seth Falcon
DirectedHyperedge
Hyperedge
Hyperedge-class
Hypergraph-class
head <- LETTERS[1:4] tail <- LETTERS[19:21] label <- "Directed hyperedge" dhe <- new("DirectedHyperedge", head=head, tail=tail, label=label)