-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample.poy
35 lines (25 loc) · 931 Bytes
/
sample.poy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(* Note: This is just an example file. Almost all these arguments are
optional, and will default to what we think are reasonable values. This is
(will be) more fully documented in the documentation. *)
(* Clear POY's memory *)
wipe ()
(* Read a file and build 5 Wagner trees *)
read("whit.hen")
build(trees:5)
(* Perform an alternating SPR/TBR search on each stored tree, keeping one
result *)
swap()
(* Keep up to 10,000 equally good trees in TBR neighborhood *)
swap(tbr, threshold:0, keep:10000)
(* Perform tree fusing *)
fuse(keep:5, iterations:10000, weighting:uniform, replace:better, swap(tbr))
(* Display trees and output to file *)
report(graph)
report("output.trees", trees)
(* Calculate Bremer support and display it *)
calculate_support(bremer, swap(spr))
report(supports)
(* Save the current POY state to a file (to resume later) *)
save("poy-session", "My sample POY session")
(* Quit *)
exit ()