[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] key players in networks

From: Tamas Nepusz
Subject: Re: [igraph] key players in networks
Date: Wed, 19 Sep 2007 20:13:14 +0200

Dear Simone,

> Is there a function like isolates() that retrive a list of isolates
> nodes so that I can pass it to delete.vertices()?
No, there is no isolates(), but it is easy to achieve using degree():

isolates <- seq(vcount(g))[degree(g) == 0]

This gives you the indices of the isolated vertices. At least I hope
so, I'm not an expert in R :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]