diff options
| author | Jarrod Millman <jarrod.millman@gmail.com> | 2022-10-12 10:19:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-12 10:19:47 -0700 |
| commit | 8a325d26aa7fdd3a72580c4720fa97f971bbefcb (patch) | |
| tree | bd72c80680622c4498776226a12352ec2167b963 /networkx/classes | |
| parent | c464814ed02635698eafb8bb8b567f778978dd14 (diff) | |
| download | networkx-8a325d26aa7fdd3a72580c4720fa97f971bbefcb.tar.gz | |
Use scipy.sparse array datastructure (#6037)
* Use scipy.sparse array datastructure
* Add reminder to rm wrapper when scipy adds creation fns.
* Rm mention of np matrix from code comment.
* Update networkx/algorithms/bipartite/matrix.py
Co-authored-by: Stefan van der Walt <sjvdwalt@gmail.com>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Co-authored-by: Stefan van der Walt <sjvdwalt@gmail.com>
Diffstat (limited to 'networkx/classes')
| -rw-r--r-- | networkx/classes/coreviews.py | 1 | ||||
| -rw-r--r-- | networkx/classes/digraph.py | 2 | ||||
| -rw-r--r-- | networkx/classes/graph.py | 2 | ||||
| -rw-r--r-- | networkx/classes/multidigraph.py | 2 | ||||
| -rw-r--r-- | networkx/classes/multigraph.py | 4 |
5 files changed, 5 insertions, 6 deletions
diff --git a/networkx/classes/coreviews.py b/networkx/classes/coreviews.py index 0a52d8d7..c2b83559 100644 --- a/networkx/classes/coreviews.py +++ b/networkx/classes/coreviews.py @@ -2,7 +2,6 @@ These ``Views`` often restrict element access, with either the entire view or layers of nested mappings being read-only. """ -import warnings from collections.abc import Mapping __all__ = [ diff --git a/networkx/classes/digraph.py b/networkx/classes/digraph.py index 2406b01e..28e5e8b7 100644 --- a/networkx/classes/digraph.py +++ b/networkx/classes/digraph.py @@ -323,7 +323,7 @@ class DiGraph(Graph): graph is created. The data can be an edge list, or any NetworkX graph object. If the corresponding optional Python packages are installed the data can also be a 2D NumPy array, a - SciPy sparse matrix, or a PyGraphviz graph. + SciPy sparse array, or a PyGraphviz graph. attr : keyword arguments, optional (default= no attributes) Attributes to add to graph as key=value pairs. diff --git a/networkx/classes/graph.py b/networkx/classes/graph.py index 47d5f81d..076d1f4c 100644 --- a/networkx/classes/graph.py +++ b/networkx/classes/graph.py @@ -339,7 +339,7 @@ class Graph: graph is created. The data can be an edge list, or any NetworkX graph object. If the corresponding optional Python packages are installed the data can also be a 2D NumPy array, a - SciPy sparse matrix, or a PyGraphviz graph. + SciPy sparse array, or a PyGraphviz graph. attr : keyword arguments, optional (default= no attributes) Attributes to add to graph as key=value pairs. diff --git a/networkx/classes/multidigraph.py b/networkx/classes/multidigraph.py index 5afffc29..31c33f67 100644 --- a/networkx/classes/multidigraph.py +++ b/networkx/classes/multidigraph.py @@ -287,7 +287,7 @@ class MultiDiGraph(MultiGraph, DiGraph): an empty graph is created. The data can be an edge list, or any NetworkX graph object. If the corresponding optional Python packages are installed the data can also be a 2D NumPy array, a - SciPy sparse matrix, or a PyGraphviz graph. + SciPy sparse array, or a PyGraphviz graph. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. diff --git a/networkx/classes/multigraph.py b/networkx/classes/multigraph.py index d2b9c99e..308c20cc 100644 --- a/networkx/classes/multigraph.py +++ b/networkx/classes/multigraph.py @@ -36,7 +36,7 @@ class MultiGraph(Graph): graph is created. The data can be any format that is supported by the to_networkx_graph() function, currently including edge list, dict of dicts, dict of lists, NetworkX graph, 2D NumPy array, - SciPy sparse matrix, or PyGraphviz graph. + SciPy sparse array, or PyGraphviz graph. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. @@ -296,7 +296,7 @@ class MultiGraph(Graph): an empty graph is created. The data can be an edge list, or any NetworkX graph object. If the corresponding optional Python packages are installed the data can also be a 2D NumPy array, a - SciPy sparse matrix, or a PyGraphviz graph. + SciPy sparse array, or a PyGraphviz graph. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. |
