Routines for simple graphs, network analysis.