optional visualisation

add parameter that indicates whether the network is plotted or not.