Complex Networks as Hypergraphs