Graph Classification via Reference Distribution Learning: Theory and Practice