graph assignment