Learning and Representing Attributed Graphs