Adding buildGraphFromAdj feature and inline node attributes