The Structure of Complex Networks: Theory and Applications