-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.py
More file actions
25 lines (21 loc) · 755 Bytes
/
plot.py
File metadata and controls
25 lines (21 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# dataclasses.py
# Copyright (c) 2025 Tobias Karusseit
# Licensed under the MIT License. See LICENSE file in the project root for full license information.
from multimodalrouter import RouteGraph
from multimodalrouter.graphics import GraphDisplay
import os
if __name__ == "__main__":
path = os.path.dirname(os.path.abspath(__file__))
graph = RouteGraph(
maxDistance=50,
transportModes={"airport": "fly", },
dataPaths={"airport": os.path.join(path, "data", "fullDataset.csv")},
compressed=False,
)
graph.build()
display = GraphDisplay(graph)
display.display(
displayEarth=True,
nodeTransform=GraphDisplay.degreesToCartesian3D,
edgeTransform=GraphDisplay.curvedEdges
)