Bipartite graphs of users and items, with co-view / co-purchase edges. Collaborative filtering is essentially matrix factorization on the adjacency matrix — a direct application of graph-theory and linear-algebra.