master
joyvan 6 years ago
1 changed file(s) with 0 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
652652 self.show_search_tree(top_text=top_text,
653653 this_path=e_path,
654654 show_success_color=True)
655
656
657 # 定义节点列表
658 node_list = ["0", "1", "2", "3", "4"]
659
660 # 定义边及权重列表
661 weighted_edges_list = [("0", "1", 10), ("0", "2", 10),
662 ("1", "3", 10), ("2", "3", 5),
663 ("2", "4", 20), ("3", "4", 14),
664 ("3", "2", 5)]
665
666 # 定义绘图中各个节点的坐标
667 nodes_pos = {"0": (1, 7), "1": (5, 1), "2": (5, 13), "3": (9, 7),
668 "4": (11, 13)}