From a treeplot to a generative network