Creating network graphs in R.