Graph creation with child/parent nodes