diff options
author | Dan Schult <dschult@colgate.edu> | 2018-07-20 00:53:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 00:53:31 -0400 |
commit | e46f4c1cc02feaa08c855ca211ef114acc8fd772 (patch) | |
tree | 4a39727be298fff1a2e1dc86906cc1961fd6abc5 /doc | |
parent | cdbf49ee375a836cc16121dcd75334d9fda1cf18 (diff) | |
download | networkx-e46f4c1cc02feaa08c855ca211ef114acc8fd772.tar.gz |
Simplify the Graphview and SubGraphView system (#3073)
* Simplify the Graphview and SubGraphView system
- add tests to show that extensions of base graph classes (only add new functions)
should be able to use the Graph.subgraph and Graph.copy methods easily
- Remove ReadOnlyGraph class in favor of existing freeze() function
- Switch all GraphView classes to generic_graph_view function
- Switch all SubGraph classes to subgraph_view function
- Introduce deprecated functions that act like the deprecated classes.
Still need to:
- add docs
- add tests
- make sure backward compatible and marked as deprecated
- remove GraphView and SubGraph construct from rest of codebase
- update release docs
Fixes #2889
Fixes #2793
Fixes #2796
Fixes #2741
* Ease subclassing for to_(un)directed
- add to_directed_class indicator functions to base classes
- start deprecating G.fresh_copy
- update function.to(un)directed
* Remove G.fresh_copy from code replace with __class__
Add deprecation warnings for GraphView classes, ReverseView and
SubGraph. Also for fresh_copy function.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/classes/digraph.rst | 1 | ||||
-rw-r--r-- | doc/reference/classes/graph.rst | 1 | ||||
-rw-r--r-- | doc/reference/classes/multidigraph.rst | 1 | ||||
-rw-r--r-- | doc/reference/classes/multigraph.rst | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/doc/reference/classes/digraph.rst b/doc/reference/classes/digraph.rst index 7465fd4a..e4e9d88f 100644 --- a/doc/reference/classes/digraph.rst +++ b/doc/reference/classes/digraph.rst @@ -84,4 +84,3 @@ Making copies and subgraphs DiGraph.subgraph DiGraph.edge_subgraph DiGraph.reverse - DiGraph.fresh_copy diff --git a/doc/reference/classes/graph.rst b/doc/reference/classes/graph.rst index 95260b1d..072c6728 100644 --- a/doc/reference/classes/graph.rst +++ b/doc/reference/classes/graph.rst @@ -76,4 +76,3 @@ Making copies and subgraphs Graph.to_directed Graph.subgraph Graph.edge_subgraph - Graph.fresh_copy diff --git a/doc/reference/classes/multidigraph.rst b/doc/reference/classes/multidigraph.rst index 3f7374a0..cc3e6066 100644 --- a/doc/reference/classes/multidigraph.rst +++ b/doc/reference/classes/multidigraph.rst @@ -85,4 +85,3 @@ Making copies and subgraphs MultiDiGraph.subgraph MultiDiGraph.edge_subgraph MultiDiGraph.reverse - MultiDiGraph.fresh_copy diff --git a/doc/reference/classes/multigraph.rst b/doc/reference/classes/multigraph.rst index 4907f9fb..f1cb9224 100644 --- a/doc/reference/classes/multigraph.rst +++ b/doc/reference/classes/multigraph.rst @@ -77,4 +77,3 @@ Making copies and subgraphs MultiGraph.to_directed MultiGraph.subgraph MultiGraph.edge_subgraph - MultiGraph.fresh_copy |