def compute_in_degrees(digraph):
    """
    Makes a directed graph digraph (represented as a dictionary)
    and computes the in-degrees for the nodes in the graph
    """
    nodes = digraph.keys()
    counts = {x:0 for x in nodes}
    for key in digraph.keys():
        values = digraph[key]
        for value in values:
            counts[value] += 1
    return counts