Walking forward and backward: towards graph-based searching and mining