Instructions for running BDD:
cd BDD_Rust
cargo run --bin websocket-servercd BDD_rust
cargo run --bin websocket-clientOne JSON-object needs to contain a "from"-value (ID of startnode), a "to"-value (ID of target node) and a costs-value. One of these objects contains the information for one path. All of these objects should be contained in the Array "paths":
{
"paths":
[
{
"from": "0",
"to": "1",
"costs": 2
},
{
"from": "1",
"to": "2",
"costs": 4
}
]
}
The defined paths are interpreted as undirected, so you can go from "to"-node to "from"-node with the same costs.
NOTE: Node-IDs have to be numbers!
The JSON-File has to be placed in folde "input_data" and named "input.json". In the existing repository there are two examples which are both accepted by the program. The user is responsible for the correctness of the JSON-file by himself.