add a check to query to make sure added edge is with a goal source