igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Performance doubt


From: Tamas Nepusz
Subject: Re: [igraph] Performance doubt
Date: Tue, 20 Aug 2019 14:29:08 +0200

Hi,

The difference should be negligible according to my measurements:

>>> from igraph import Graph
>>> from timeit import timeit
>>> g = Graph.GRG(10000, 0.002)
>>> vs = g.vs
>>> timeit("g.degree()", setup="from __main__ import g", number=10000)
0.8931419849395752
>>> timeit("g.degree(vs)", setup="from __main__ import g, vs", number=10000)
0.8965861797332764

T.


On Mon, 19 Aug 2019 at 17:53, Fernando Barraza <address@hidden> wrote:
Hello,

I want to know your opinion if should be there a significant performance difference between calling the method Graph.degree() and Graph.degree(myVertexSeq) when myVertexSeq contain the whole graph. I'm calculating on a graph with more than a million of vertexes.

Regards,

Fdo.
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help

reply via email to

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