add ideal graph