コード例 #1
0
ファイル: MainSearch.py プロジェクト: Luizangel50/CTC-17_Lab1
def main():
    """Main function"""

    # Dictionary that stores all the nodes of the graph
    # in which the keys are the nodes' IDs
    dataNodes = {}

    # Readin data
    readInput(dataNodes)

    # Using Greedy algorithm
    Greedy.greedySearch(dataNodes, INITIAL_NODE, FINAL_NODE)

    # Using A* algorithm
    AStar.aStarSearch(dataNodes, INITIAL_NODE, FINAL_NODE)