basic / general network analysis stuff in R, python