The connectivity function of a graph