The π sequence as a complex network