build graph with more attributes