It has applications wherever large graphs are encountered - social networks, biological processes etc. An example application of the library could be as follows - you have a very large graph and you want to do spectral clustering. Throwing spectral clustering directly at such large graphs might not be feasible, so one can first perform a node based subsampling and then apply spectral clustering on the smaller graph on the representative nodes found by the subsampling.
def _check_networkx_graph(self, graph):
try:
if not isinstance(graph, nx.classes.graph.Graph):
raise TypeError("This is not a NetworkX graph. Please see requirements.")
except:
exit("This is not a NetworkX graph. Please see requirements.")
First, I don't want any library to call exit on me. Second, what is it even trying to do? Raising an exception and immediately catching it? At best this is just a horrible style.https://littleballoffur.readthedocs.io/en/latest/notes/intro...
--->
https://little-ball-of-fur.readthedocs.io/en/latest/notes/in...