caugi
R/methods.R
length.caugi.Rd
Returns the number of nodes in the graph.
# S3 method for class 'caugi' length(x)
A caugi object.
An integer representing the number of nodes.
Other caugi methods: caugi-equality, print.caugi()
caugi-equality
print.caugi()
cg <- caugi( A %-->% B, class = "DAG" ) length(cg) # 2 #> [1] 2 cg2 <- caugi( A %-->% B + C, nodes = LETTERS[1:5], class = "DAG" ) length(cg2) # 5 #> [1] 5