[graph-tool] Understanding the Model Function for Generative model