def parent_has_child(edges, parent, child):
    """Determines whether the passed DataFrame contains a row matching the following criteria:
    A column named 'From' whose value matches the 'parent' paremeter and a column named 'To' whose value matches the 'child' parameter
    """
    parents = edges.query('From == "' + parent + '"')
    children = parents.get('To')   
    return child in children.unique()