Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodes created by AGraph.successors never got freed #522

Open
RabbitWhite1 opened this issue Apr 15, 2024 · 0 comments
Open

Nodes created by AGraph.successors never got freed #522

RabbitWhite1 opened this issue Apr 15, 2024 · 0 comments

Comments

@RabbitWhite1
Copy link

Below is a simplest example,

import pygraphviz as pgv

graph = pgv.AGraph()

root = 1

for i in range(2, 10):
    graph.add_edge(root, i)
    
while True:
    successors = graph.successors(root)

When running this with python 3.11, the memory usage keeps growing. Is it the user's responsibility to free nodes? If so, how to free the nodes? Otherwise, this looks like a memory-leaking issue.

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant