| length.caugi | R Documentation |
caugiReturns the number of nodes in the graph.
## S3 method for class 'caugi'
length(x)
x |
A |
An integer representing the number of nodes.
Other caugi methods:
caugi-equality,
print.caugi()
cg <- caugi(
A %-->% B,
class = "DAG"
)
length(cg) # 2
cg2 <- caugi(
A %-->% B + C,
nodes = LETTERS[1:5],
class = "DAG"
)
length(cg2) # 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.