Allow edge queries to be restricts to both incident nodes