check.network function

Check if all nodes in the network are connected (identical to function in MBNMAtime)