'Create a new instance.
:param local_heads: Heads to start search with
:param get_parents: Function for finding the parents of a SHA1.'

def __init__(self, local_heads, get_parents):

    self.heads = set(local_heads)
    self.get_parents = get_parents
    self.parents = {}
