> 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.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to