Skip to content

Remove circular references between graphs and views. - #3011

Merged
dschult merged 1 commit into
networkx:masterfrom
dschult:circref
Jun 14, 2018
Merged

dschult merged 1 commit into
networkx:masterfrom
dschult:circref

Conversation

@dschult

@dschult dschult commented Jun 14, 2018

Copy link
Copy Markdown
Member

Graphs no longer have references to views.
Views still have references to the graph.
This should ease subclassing the base graph classes
because you don't have to worry about creating memory leaks.

Fixes #2915

Graphs no longer have references to views.
Views still have references to the graph.
This should ease subclassing the base graph classes
because you don't have to worry about creating memory leaks.
@dschult
dschult merged commit e97abea into networkx:master Jun 14, 2018
@dschult dschult added this to the networkx-2.2 milestone Jun 14, 2018
@dschult
dschult deleted the circref branch June 14, 2018 17:34
dschult added a commit to dschult/networkx that referenced this pull request Jun 16, 2018
dschult added a commit that referenced this pull request Jun 16, 2018
* Remove a second cyclic reference in G.root_graph

Related to #3011 and #2885 and maybe #2793

* Add tests for memory leaks due to copy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant