MCPcopy
hub / github.com/networkx/networkx / from_scipy_sparse_array

Function from_scipy_sparse_array

networkx/utils/tests/test_backends.py:59–66  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

57 side_effects = []
58
59 def from_scipy_sparse_array(self, *args, **kwargs):
60 side_effects.append(1) # Just to prove this was called
61 return self.convert_from_nx(
62 self.__getattr__("from_scipy_sparse_array")(*args, **kwargs),
63 preserve_edge_attrs=True,
64 preserve_node_attrs=True,
65 preserve_graph_attrs=True,
66 )
67
68 @staticmethod
69 def convert_to_nx(obj, *, name=None):

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
convert_from_nxMethod · 0.80
__getattr__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…