A network is officially defined as a group or system of interconnected people or items.
So, by this definition, train stations connected to each other with rail tracks make up a railway network. People who follow each other on Twitter make up an online social network.
Similarly, computers connected to each other with cable or wireless radio make up a computer network.