[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] how to translate from R to Python...
From: |
Simone Gabbriellini |
Subject: |
Re: [igraph] how to translate from R to Python... |
Date: |
Mon, 22 Sep 2008 16:24:34 +0200 |
Hi Tamas,
sorry, doesn't seem to work on my network...
it produces a network, but some node are missing...
maybe the R translation is not the best way to accomplish my task... I
just want to subgraph all the nodes with blue edges from a larger graph
tnx,
simone
Il giorno 22/set/08, alle ore 16:09, Tamas Nepusz ha scritto:
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.
_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help