Define get/set functions and size functions of Network.