Skip to content

Clear function and improve delete vertices and edges#320

Merged
ntamas merged 4 commits intoigraph:masterfrom
iosonofabio:clear
Sep 23, 2020
Merged

Clear function and improve delete vertices and edges#320
ntamas merged 4 commits intoigraph:masterfrom
iosonofabio:clear

Conversation

@iosonofabio
Copy link
Copy Markdown
Member

@iosonofabio iosonofabio commented Aug 3, 2020

This implements Graph.clear() which clears vertices, edges, and attributes.

It also deprecates Graph.delete_vertices(None) and Graph.delete_edges(None), opting instead for Graph.delete_vertices() and Graph.delete_edges().

Tests still missing, hence draft.

edit: added tests and reviewed, so it should be ready for merge now

@iosonofabio iosonofabio marked this pull request as ready for review August 3, 2020 22:52
@iosonofabio
Copy link
Copy Markdown
Member Author

I merged current master to force CI. There's one thing with the pandas DataFrame input that I fixed in PR #310 so this PR is now conditional on that one (which is done).

That is, as soon as the refactoring in #310 is done we can merge this one too.

@ntamas
Copy link
Copy Markdown
Member

ntamas commented Sep 23, 2020

Thanks a lot! PR queue clear, phew!

@ntamas ntamas merged commit a44e0e5 into igraph:master Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants