https://github.com/chneau/graph-java
A graph with Graph Simplification, Dijkstra and OSM data loader - in java
https://github.com/chneau/graph-java
Last synced: 7 months ago
JSON representation
A graph with Graph Simplification, Dijkstra and OSM data loader - in java
- Host: GitHub
- URL: https://github.com/chneau/graph-java
- Owner: chneau
- License: mit
- Created: 2020-02-10T11:27:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T11:47:09.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T20:19:17.550Z (over 1 year ago)
- Language: Java
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/chneau/graph-java)
# graph-java
A graph with Graph Simplification, Dijkstra and OSM data loader - in java
## useful commands (self reminder)
```bash
./gradlew assemble # assemble project, can be helpfull with vscode `ctrl+shift+P-> Java: Update project configuration`
```
```bash
./gradlew build # run tests compilation and checks
```
```bash
./gradlew spotlessApply # format source code
```
## import this library in another gradle project
In settings.gradle:
```groovy
rootProject.name = 'vs'
sourceControl {
gitRepository("https://github.com/chneau/openhours-java.git") {
producesModule("chneau:openhours")
}
gitRepository("https://github.com/chneau/timetable-java.git") {
producesModule("chneau:timetable")
}
gitRepository("https://github.com/chneau/graph-java.git") {
producesModule("chneau:graph")
}
}
```
In build.gradle:
```groovy
implementation "chneau:openhours"
implementation "chneau:timetable"
implementation "chneau:graph"
```
(self note: the project doesnt need a `group 'chneau'`)
**IMPORTANT** if using vscode, git pull these projects and open them on the same workspace (yeah, reading the vscode problems tab was useful for once)
### misc
self reminder: this project is understood to be a library by Gradle thanks to `group 'chneau'` in build.gradle and `rootProject.name = 'graph'` in settings.gradle.
## GTFS
<- contains useful diagram