(domain)
return map_reduce(lambda k_v: [(p, k_v[0]) for p in k_v[1]],
                      data=dict(location_hierarchy_config(domain)).items())
Returns a dict mapping from a location type to its possible
    child types
Returns a dict mapping from a location type to its possible
    child types
Returns a dict mapping from a location type to its possible child types
def parent_child(domain):
    """
    Returns a dict mapping from a location type to its possible
    child types
    """
    return map_reduce(lambda k_v: [(p, k_v[0]) for p in k_v[1]],
                      data=dict(location_hierarchy_config(domain)).items())
def parent_child ( domain ) : return map_reduce ( lambda k_v : [ ( p , k_v [ 0 ] ) for p in k_v [ 1 ] ] , data = dict ( location_hierarchy_config ( domain ) ) . items ( ) )