def _create_graph_from_edges(edges):
    """Creates a dependency graph from the passed in edges.

    :param list edges: A list of pairs from parent to child dependencies.

    :return: The edges as a dependency graph.
    :rtype: dict.
    """
    g = {}
    for n1, n2 in edges:
        n1 = n1.strip()
        n2 = n2.strip()
        if n1 not in g:
            g[n1] = []
        if n2 not in g:
            g[n2] = []
        g[n1].append(n2)
    return g