Const
Compute the previous Prüfer code from the given code with wrap-around.
For example, the previous code of 1,1,1 (first code for 5 nodes) will be 4,4 (last code for 4 nodes), and the previous code of 4,4 will be 4,3.
1,1,1
4,4
4,3
Compute the previous Prüfer code from the given code with wrap-around.
For example, the previous code of
1,1,1(first code for 5 nodes) will be4,4(last code for 4 nodes), and the previous code of4,4will be4,3.