Update pgmNetwork.R