|
@@ -56,7 +56,7 @@ def thread_function(kw):
|
|
|
for elmt in s2['suggests']:
|
|
|
G.add_edge(sg,elmt,weight=1)
|
|
|
|
|
|
- G.remove_nodes_from(list(nx.isolates(G)))
|
|
|
+# G.remove_nodes_from(list(nx.isolates(G)))
|
|
|
G.remove_edges_from( list(nx.selfloop_edges(G)))
|
|
|
|
|
|
# pickle.dump( G, open( "gs2.p", "wb" ) )
|