[mypy] Fix type annotations for graphs (#4622)

* Fix mypy error for frequent_pattern_graph_miner.py

* Fix mypy error for markov_chain.py
This commit is contained in:
imp 2021-08-18 18:44:26 +08:00 committed by GitHub
parent d009cea391
commit 4545270ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -227,6 +227,6 @@ if __name__ == "__main__":
support = get_support(cluster)
graph = construct_graph(cluster, nodes)
find_freq_subgraph_given_support(60, cluster, graph)
paths = []
paths: list = []
freq_subgraph_edge_list = freq_subgraphs_edge_list(paths)
print_all()

View File

@ -35,6 +35,7 @@ class MarkovChainGraphUndirectedUnweighted:
current_probability += self.connections[node][dest]
if current_probability > random_value:
return dest
return ""
def get_transitions(