1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
\name{DirectedHyperedge-class}
\docType{class}
\alias{DirectedHyperedge-class}
\alias{initialize,DirectedHyperedge-method}
\alias{nodes,DirectedHyperedge-method}
\alias{show,DirectedHyperedge-method}
\alias{head}
\alias{head,DirectedHyperedge-method}
\alias{tail}
\alias{tail,DirectedHyperedge-method}
\alias{toUndirected}
\alias{toUndirected,DirectedHyperedge-method}
\title{Class DirectedHyperedge}
\description{This class represents directed hyperedges in a
\code{\link{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.
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{new("DirectedHyperedge", head, tail, label)}.
You can also use the convenience function \code{\link{DirectedHyperedge}}.
}
\section{Slots}{
\describe{
\item{\code{tail}:}{Character vector of nodes in the tail of the hyperedge}
\item{\code{head}:}{Character vector of nodes in the head of the hyperege}
\item{\code{label}:}{Character string describing the directed hyperedge}
}
}
\section{Extends}{
Class \code{"Hyperedge"}, directly.
}
\section{Methods}{
\describe{
\item{head}{\code{signature(x = "DirectedHyperedge")}: Return a
vector containing the nodes in the head of the hyperedge}
\item{tail}{\code{signature(x = "DirectedHyperedge")}: Return a
vector containing the nodes in the tail of the hyperedge}
\item{initialize}{\code{signature(.Object = "DirectedHyperedge")}:
Create a new instance.}
\item{nodes}{\code{signature(object = "DirectedHyperedge")}: Return
a vector containing all nodes present in the hyperedge.}
\item{show}{\code{signature(object = "DirectedHyperedge")}: Print me }
\item{toUndirected}{\code{signature(.Object = "DirectedHyperedge")}:
Return a \code{\link{Hyperedge-class}} object that results from
coercing to an undirected hyperedge.}
}
}
\author{Seth Falcon}
\seealso{
\code{\link{DirectedHyperedge}}
\code{\link{Hyperedge}}
\code{\link{Hyperedge-class}}
\code{\link{Hypergraph-class}}
}
\examples{
head <- LETTERS[1:4]
tail <- LETTERS[19:21]
label <- "Directed hyperedge"
dhe <- new("DirectedHyperedge", head=head, tail=tail, label=label)
}
\keyword{classes}
|