This demo is the sampling inference for Graph Topic Model, and more details about this model can be found in the following reference: @ARTICLE{7015568, author={J. Xuan and J. Lu and G. Zhang and X. Luo}, journal={IEEE Transactions on Cybernetics}, title={Topic Model for Graph Mining}, year={2015}, volume={45}, number={12}, pages={2792-2803}, keywords={data mining;data structures;graph theory;pattern classification;text analysis;unsupervised learning;Bernoulli distribution;GTM;bag-of-word assumption;classification;edge modeling;graph dataset;graph mining;graph nodes;graph representation;graph supervised learning;graph-structured data;innovative graph topic model;latent Dirichlet allocation;latent topic discovery;unsupervised learning;Chemical elements;Chemicals;Data mining;Data models;Hidden Markov models;Inference algorithms;Vectors;Graph mining;latent Dirichlet allocation (LDA);topic model}, doi={10.1109/TCYB.2014.2386282}, ISSN={2168-2267}, month={Dec},}