Skip to content
Snippets Groups Projects
Commit 9b1c9767 authored by Victor Zimmermann's avatar Victor Zimmermann
Browse files

Minor changes, now in sort-of final state.

parent a53bc668
No related branches found
No related tags found
No related merge requests found
......@@ -521,6 +521,10 @@ def induce(topic_name: str, result_list: list) -> (nx.Graph, list, dict):
print('[a]', 'Building graph.\t('+topic_name+')')
graph = build_graph(node_freq_dict, edge_freq_dict)
for string in topic_name.split('_'):
if string in graph.nodes:
graph.remove_node(string)
stat_dict['nodes'] = len(graph.nodes)
stat_dict['edges'] = len(graph.edges)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment