Commit 9b1c9767 authored by Victor Zimmermann's avatar Victor Zimmermann
Browse files

Minor changes, now in sort-of final state.

parent a53bc668
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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)