igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] how to translate from R to Python...


From: Tamas Nepusz
Subject: Re: [igraph] how to translate from R to Python...
Date: Mon, 22 Sep 2008 15:09:32 +0100

def adj(es):
   result = set()
   for e in es: result.add(*e.tuple)
Sorry; instead of the last line, you should write:
   for e in es: result.update(e.tuple)

--
T.





reply via email to

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