网络拓扑图最短路径模拟
- 创建和编辑网络拓扑图。
- 运行 Dijkstra 和 Bellman-Ford 算法。
- 图形化展示最短路径选择。
- 交互式用户界面。
确保您的系统已经安装了 Python(版本 3.x)和以下依赖库:
- PyQt5
- NetworkX
- Matplotlib
pip install requirment.txt
运行main.py
- 启动应用程序后,您可以通过输入框添加节点和边来创建网络拓扑。
- 使用下拉菜单选择起始节点、目的节点和路由算法。
- 点击“运行算法”按钮查看最短路径的图形化展示。
1.初始化
2.加入边和节点,选择算法,运行