Skip to content
Prev 172856 / 398506 Next

Highly Connected Nodes in Igraph

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: