aveNumEdges: Calculate the average number of edges in a graph

Description Usage Arguments Value Author(s) See Also Examples

View source: R/edgefunctions.R

Description

aveNumEdges divides the number of edges in the graph by the number of nodes to give the average number of edges.

Usage

1
aveNumEdges(objgraph)

Arguments

objgraph

the graph object

Value

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

Author(s)

Elizabeth Whalen

See Also

numEdges, mostEdges, numNoEdges

Examples

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

pshannon-bioc/graph documentation built on May 26, 2019, 10:32 a.m.