Finding the shortest path between any two Dgraph nodes is useful, but in certain contexts, knowing that there is any path at all is still very useful.
For example, if we are storing some hierarchical system in Dgraph, knowing whether two nodes are connected by some predicate(s) might tell us whether they are semantically related.
I imagine something relatively simple like depth-first search would be perfectly sufficient for implementing this, and would presumably have the additional benefit of being much faster than a shortest-path query, but then again I’m not sure how difficult this would be to add to Dgraph’s codebase.