mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-02-02 16:00:16 +00:00
rogueviz:: embeddings:: -gr test
This commit is contained in:
@@ -180,6 +180,12 @@ int routing_args() {
|
||||
if(argis("-routing")) {
|
||||
// shift(); routing_test(args());
|
||||
}
|
||||
else if(argis("-gr")) {
|
||||
iddata result;
|
||||
prepare_pairs();
|
||||
greedy_routing(result);
|
||||
println(hlog, "success = ", result.suc / result.tot, " stretch = ", result.routedist / result.bestdist);
|
||||
}
|
||||
else return 1;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user