numEdges {graph}R Documentation

Calculate the number of edges in a graph

Description

numEdges counts the number of edges in the graph object.

Usage

numEdges(graph)

Arguments

graph the graph

Value

An integer representing the number of edges will be returned.

Author(s)

Elizabeth Whalen

See Also

aveNumEdges, mostEdges, numNoEdges

Examples

 set.seed(333)
 g1 <- randomEGraph(letters[13:26], .2)
  numEdges(g1)

[Package graph version 1.5.9 Index]