Similar Items: A robust graph-based approach to observational equivalence