Read graph from file
This commit is contained in:
parent
f2798a14d4
commit
9fc1ff2f8c
4 changed files with 46 additions and 7 deletions
10
README.md
10
README.md
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue