Calculate the average number of edges in a graph
aveNumEdges divides the number of edges in the graph by the number of nodes to give the average number of edges.
aveNumEdges(objgraph)
objgraph |
the graph object |
A double representing the average number of edges will be returned.
Elizabeth Whalen
set.seed(124) g1 <- randomGraph(1:10, letters[7:12], p=.6) aveNumEdges(g1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.