igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] trouble in deleting vertices


From: Tamas Nepusz
Subject: Re: [igraph] trouble in deleting vertices
Date: Wed, 10 Dec 2014 15:36:31 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

> But  when I use the function Graph.delete_vertices(). It is running
> terrible slowly now.
> 
> Is there any better and faster way?
*glancing into my crystal ball*
Are you deleting the vertices one by one? If so, don't do that. Prepare a list
containing all the vertices to be deleted and then call Graph.delete_vertices()
once. Alternatively, use Graph.induced_subgraph() to create *another* graph
which contains only the vertices you want to keep.

Best,
T.



reply via email to

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