An Attributed Graph Embedding Method Using the Tree-Index Algorithm