tree algorithms on sklearn use parallel arrays to represent the tree structure.