check for dangling edges in query
check for empty link clauses