Read graph from file

This commit is contained in:
Pascal Engélibert 2025-10-17 16:11:43 +02:00
commit 9fc1ff2f8c
4 changed files with 46 additions and 7 deletions

View file

@ -53,6 +53,16 @@ Path found, destination <0e1fb61e3b38e332868b331740642f41> is 4 hops away via <1
For now, UDP ports are allocated to links in order from `42000` to `65535`.
The graph can also be read from a text file listing edges, using option `-G <path>`. An edge is a space-separated list of two node indices. Separation can be any whitespace character. Example:
```
0 1
1 2
2 0
1 3
3 4
```
## License
[Support me via LiberaPay](https://liberapay.com/tuxmain/donate)