k_nearest_neighbors# k_nearest_neighbors(G, source='in+out', target='in+out', nodes=None, weight=None)[source]# Compute the average degree connectivity of graph.