An efficient pruning method for subgraph matching in large-scale graphs