doctests for network_analysis