\Header{rootedDAG-class}{Class "rootedDAG"}
\alias{DAG}{rootedDAG-class}
\alias{DAG,rootedDAG-method}{rootedDAG-class}
\alias{getMatrix,rootedDAG,character,character-method}{rootedDAG-class}
\alias{root}{rootedDAG-class}
\alias{root,rootedDAG-method}{rootedDAG-class}
\keyword{classes}{rootedDAG-class}
\begin{Description}\relax
wraps a graph that can be 
shown to be a DAG and has a root (one node with no ancestor)
\end{Description}
\begin{Section}{Objects from the Class}
Objects can be created by calls of the form \code{new("rootedDAG", ...)}.
Does not extend graph but probably should.
\end{Section}
\begin{Section}{Slots}
\describe{
\item[\code{root}:] Object of class \code{"character"} name of root 
\item[\code{DAG}:] Object of class \code{"graph"} DAG 
}
\end{Section}
\begin{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 
}
\end{Section}
\begin{Author}\relax
VJ Carey <stvjc@channing.harvard.edu>
\end{Author}
\begin{Examples}
\begin{ExampleCode}
\end{ExampleCode}
\end{Examples}

