degree | R Documentation |
Degree of vertices
degree(graph, mode = c("out", "in", "total", "all"))
graph |
Input graph. |
mode |
Whether to calculate |
Named numeric vector of degrees.
G <- graph(list(A = c("B", "C"), B = "C", C = "A"))
degree(G, mode = "out")
degree(G, mode = "in")
degree(G, mode = "total")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.