Add operator >>, << for Network class