On 11.07.2017 16:00, zhfkt wrote: > I know the clear_vertex is to clear all edges related with the Vertex. But > after executing the clear_vertex, it seems that the Graph still contains 1 > edge created before. Will I need to revise my code ?
This is a simple bug hat has already been fixed in git. The edges are actually deleted from the graph, but the counter is not updated. You can check by doing: len(list(g.edges())) The fix will be available in the next version, but in the meantime you can just ignore it, or install from git. > I post the same on the stackoverflow > https://stackoverflow.com/questions/45031315/the-basic-usage-in-the-graph-tool-how-to-delete-vertex-and-related-edges-in-the?noredirect=1#comment77045641_45031315 It is redundant to post in stack overflow; the proper places are this mailing list and the issue tracker in the website. -- Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
