aveNumEdges

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.

Keywords
manip
Usage
aveNumEdges(objgraph)
Arguments
objgraph
the graph object
Value

A double representing the average number of edges will be returned.

See Also

numEdges, mostEdges, numNoEdges

Aliases
  • aveNumEdges
Examples
 set.seed(124)
 g1 <- randomGraph(1:10, letters[7:12], p=.6)
 aveNumEdges(g1)

Documentation reproduced from package graph, version 1.50.0, License: Artistic-2.0

Community examples

Looks like there are no examples yet.