Using a graph model for recommendations