Create a network from pairs of components