Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mostEdges

Find the node in a graph with the greatest number of edges


Description

mostEdges finds the node that has the most edges in the graph. This is the node with the highest degree.

Usage

mostEdges(objGraph)

Arguments

objGraph

the graph object

Value

index

the index of the node with the most edges

id

the node value with the most edges; may be affy id, locus link id, or genename depending on the node type

maxLen

the number of edges for that node

Author(s)

Elizabeth Whalen

See Also

Examples

set.seed(123)
  g1 <- randomGraph(11:30, letters[20:26], p=.4)
  mostEdges(g1)

graph

graph: A package to handle graph data structures

v1.68.0
Artistic-2.0
Authors
R. Gentleman, Elizabeth Whalen, W. Huber, S. Falcon
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.