def get_node_obj_from_ids(acdfg_obj, proto_edge):
    src = acdfg_obj.get_node_from_id(getattr(proto_edge, 'from'))
    tgt = acdfg_obj.get_node_from_id(proto_edge.to)
    return (src, tgt)
def get_node_obj_from_ids(acdfg_obj, proto_edge):
    src = acdfg_obj.get_node_from_id(getattr(proto_edge, 'from'))
    tgt = acdfg_obj.get_node_from_id(proto_edge.to)
    return (src, tgt)