':param function:    A normalized Function object.
:returns:           A dictionary of basic block addresses and their distance to the start of the function.'

@staticmethod
def _distances_from_function_start(function):

    return networkx.single_source_shortest_path_length(function.graph, function.startpoint)
