use flatt directory structure
1 files modified
4 files renamed
7 files deleted
1 files added
New file |
| | |
| | | *.venv* |
| | | __pycache__/ |
| | | .idea/ |
| | | *.egg-info/ |
| | |
| | | |
| | | ## Installation |
| | | |
| | | Installation das Projekt auf einem virtuellen Python-Umgebung: |
| | | Installation das Projekt auf einer virtuellen Python-Umgebung: |
| | | |
| | | ````shell |
| | | pip install -e . |
| | |
| | | ## Run Unittest |
| | | |
| | | ```shell |
| | | python3 -m unittest discover --pattern *tests.py |
| | | pytest *_tests.py |
| | | ``` |
| | | |
| | | ## Run programm |
File was renamed from stundenplan/tests/pygraph/graphdemo_tests.py |
| | |
| | | import unittest |
| | | |
| | | from pygraph.graphdemo import Graph |
| | | from graphdemo import Graph |
| | | |
| | | |
| | | class GraphTestCase(unittest.TestCase): |
File was renamed from stundenplan/src/pygraph/shortestpath.py |
| | |
| | | import collections |
| | | from typing import Mapping |
| | | |
| | | from pygraph.graphdemo import Graph |
| | | from graphdemo import Graph |
| | | |
| | | |
| | | def bfs(g: Graph, start: int) -> Graph: |
File was renamed from stundenplan/tests/pygraph/shortestpath_tests.py |
| | |
| | | import unittest |
| | | |
| | | from pygraph.graphdemo import Graph |
| | | from pygraph.shortestpath import bfs, bfs_dict, find_path, find_path_gpt |
| | | from graphdemo import Graph |
| | | from shortestpath import bfs, bfs_dict, find_path, find_path_gpt |
| | | |
| | | |
| | | class ShortestPathTestCase(unittest.TestCase): |