Python API - ZoneGraph

Hello,
I started a project in which I want to figure out a way to automate zonegraph creation.

So far, I’ve successfully managed to create a script that automatically places ZoneShape actors and splines in their correct place -
However, I’ve been unsuccessful at figuring out how to connect said ZoneShapes to form a proper ZoneGraph automatically.
Looking at the API docs is not much help.

Am I missing something?

Thanks in advance!