rootedDAG-class {ontoTools} | R Documentation |
wraps a graph that can be shown to be a DAG and has a root (one node with no ancestor)
Objects can be created by calls of the form new("rootedDAG", ...)
.
Does not extend graph but probably should.
root
:"character"
name of root DAG
:"graph"
DAG signature(x = "rootedDAG")
: extract the graph 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'.signature(x = "rootedDAG")
: extract name of root VJ Carey <stvjc@channing.harvard.edu>