A Graph-based Approach for Trajectory Similarity Computation in Spatial Networks