You can use a binary array to hold information about open and closed links between nodes, as shown in the image. The tree is built by the closed links (value "1").
You can do crossover by swapping parts of the "parent" arrays.
However, you will need an algorithm to fix those "child" arrays that have isolated nodes or that have loops.