[Top][All Lists]

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

Re: [igraph] multiple edges and their attributes

From: Tamas Nepusz
Subject: Re: [igraph] multiple edges and their attributes
Date: Fri, 13 Mar 2015 11:40:42 +0100
User-agent: Mutt/1.5.23 (2014-03-12)


> > eids = [index for index, is_multiple in enumerate(graph.is_multiple()) if
> > is_multiple]
> There is a small catch here; you are generating a large number of
> eids, whereas in my attempt, I first filtered out the 'unique' edges,
> then among them I find those with 'multiple' counterparts. I assumed
> this is efficient for v.large graphs. Please correct me if I am wrong.
I haven't tested it -- maybe it makes a difference for large graphs, I don't
know. You can measure it from IPython using %timeit.

> Now, I am linking another thread here for a quick question. Can I
> replace the below code with your suggestion found in:
> http://lists.nongnu.org/archive/html/igraph-help/2015-03/msg00024.html?
I'm pretty sure you can.


reply via email to

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