Loading src/absinth.py +4 −0 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
src/absinth.py +4 −0 Original line number Diff line number Diff line Loading @@ -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) Loading