- Add -doc patch to fix building the gallery of examples. - Add -is patch to reduce noise in sagemath. - Add upstream bug fix patches: -source-target, -union-find, -cb-iterable, -iterable, and -dict-iteration.
23 lines
1008 B
Diff
23 lines
1008 B
Diff
--- networkx/convert_matrix.py.orig 2019-04-11 14:52:34.000000000 -0600
|
|
+++ networkx/convert_matrix.py 2019-09-11 09:40:18.967671622 -0600
|
|
@@ -560,7 +560,7 @@ def from_numpy_matrix(A, parallel_edges=
|
|
edges = map(lambda e: (int(e[0]), int(e[1])),
|
|
zip(*(np.asarray(A).nonzero())))
|
|
# handle numpy constructed data type
|
|
- if python_type is 'void':
|
|
+ if python_type == 'void':
|
|
# Sort the fields by their offset, then by dtype, then by name.
|
|
fields = sorted((offset, dtype, name) for name, (dtype, offset) in
|
|
A.dtype.fields.items())
|
|
--- networkx/drawing/nx_pydot.py.orig 2019-04-11 14:52:34.000000000 -0600
|
|
+++ networkx/drawing/nx_pydot.py 2019-09-11 09:40:50.592150597 -0600
|
|
@@ -199,7 +199,7 @@ def to_pydot(N):
|
|
|
|
name = N.name
|
|
graph_defaults = N.graph.get('graph', {})
|
|
- if name is '':
|
|
+ if name == '':
|
|
P = pydot.Dot('', graph_type=graph_type, strict=strict,
|
|
**graph_defaults)
|
|
else:
|