jared 3 年之前
父节点
当前提交
3953378fdc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/main.py

+ 1 - 1
web/main.py

@@ -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" ) )