fg.degree | R Documentation |
Get the degree of vertices in a graph.
fg.degree(graph, mode = c("both", "in", "out"))
graph |
The FlashGraph object |
mode |
Character string. "out" for out-degree, "in" for in-degree, "both" for the sum of the two. This argument is ignored for undirected graphs. |
A numeric vector with the degree of each vertex in the graph.
Da Zheng <dzheng5@jhu.edu>