When using find_cluster method, Spyder complains that scipy.sparse has no attribute csgraph, which probably stems from Python's import mechanism that doesn't automatically import modules deeper than one level. Long story short, either I'm using the code the wrong way, or scipy.sparse.csgraph needs to be imported explicitly in GenericNetwork's header.
When using
find_cluster
method, Spyder complains thatscipy.sparse
has no attributecsgraph
, which probably stems from Python'simport
mechanism that doesn't automatically import modules deeper than one level. Long story short, either I'm using the code the wrong way, orscipy.sparse.csgraph
needs to be imported explicitly inGenericNetwork
's header.