Skip to content

Highly Connected Nodes in Igraph

2 messages · Sur Nathan, Gábor Csárdi

#
Nathan,

if you have a weighted adjacency matrix, then you don't need graph
packages for this, just do

rowSums(data)

or

rowSums(data != 0)

depending you want the sum of the weights of the adjacent edges, or
just the number of adjacent edges. Or optionally colSums instead of
rowSums if your graph is directed.

Best,
Gabor

On Fri, Mar 6, 2009 at 7:00 PM, Sur Nathan
<surendar.swaminathan at gmail.com> wrote: