Miscellaneous functions for network analysis
