added graph assignment