\HeaderA{rootedDAG-class}{Class "rootedDAG"}{rootedDAG.Rdash.class}
\aliasA{DAG}{rootedDAG-class}{DAG}
\aliasA{DAG,rootedDAG-method}{rootedDAG-class}{DAG,rootedDAG.Rdash.method}
\aliasA{getMatrix,rootedDAG,character,character-method}{rootedDAG-class}{getMatrix,rootedDAG,character,character.Rdash.method}
\aliasA{root}{rootedDAG-class}{root}
\aliasA{root,rootedDAG-method}{rootedDAG-class}{root,rootedDAG.Rdash.method}
\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}

