Chain Prefix Rank

Enter a parent array on a single line and press "Validate & Draw". Drag vertices to adjust layout.

n ≤ 20. Vertices are 1..n.
Examples (click to load, validate, and draw):