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 <[email protected]>
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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help