Graph Theory Project
Team members
- Do Duy Huy Hoang
- Pham Thi Ngoc Mai
- Doan Lien Huong
- Le Nhu Chu Hiep
- Pham Phan Bach
- Vu Khanh Huyen
Overview
-
Our code is organized in two files:
graph.py
: definition of the class Graph along with graph-related functionstree.py
: definition of the class Tree along with tree traversal functions
-
Implemented functions:
- degree
- neighbors
- components
- path
- spanning_tree 6. prim
- kruskal
- dijkstra
- shortest_path
- preorder
- postorder
- For more informations, you can head down to this report at
/docs/Report.pdf
Setup
Create a python environment using conda and the environment.yaml
file:
conda env create --file=environment.yml
All analysis steps are provided in more detail in the Report.ipynb
jupyter notebook. Run it with the following command from the source folder:
jupyter notebook
If you are not using any python environment, you need to install some python packages in requirements.txt
file