\name{rootedDAG-class} \docType{class} \alias{rootedDAG-class} \alias{DAG} \alias{root} \alias{getMatrix,rootedDAG,character,character-method} \alias{DAG,rootedDAG-method} \alias{root,rootedDAG-method} \title{Class "rootedDAG" } \description{wraps a graph that can be shown to be a DAG and has a root (one node with no ancestor) } \section{Objects from the Class}{ Objects can be created by calls of the form \code{new("rootedDAG", ...)}. Does not extend graph but probably should. } \section{Slots}{ \describe{ \item{\code{root}:}{Object of class \code{"character"} name of root } \item{\code{DAG}:}{Object of class \code{"graph"} DAG } } } \section{Methods}{ \describe{ \item{DAG}{\code{signature(x = "rootedDAG")}: extract the graph } \item{getMatrix}{\code{signature(g = "rootedDAG", type = "character", mode = "character")}: Currently only 'child2parent' can be used for type, meaning that row corresponds to child, column corresponds to ancestor and mat[row,column] is 1 if node corresponding to row is a child of node corresponding to ancestor. Type can be 'sparse' (return sparse representation) or 'dense'.} \item{root}{\code{signature(x = "rootedDAG")}: extract name of root } } } %\references{ ~put references to the literature/web site here ~ } \author{ VJ Carey } %\note{ ~~further notes~~ } % ~Make other sections like Warning with \section{Warning }{....} ~ %\seealso{ % ~~objects to See Also as \code{\link{~~fun~~}}, ~~~ % or \code{\link{CLASSNAME-class}} for links to other classes %} \examples{ } \keyword{classes}