def join(left, right):
    """
    Join two dag paths together

    :param str left: A node dagpath or name.
    :param str right: A node name.
    :return: A dagpath combining the left and right operant.
    :rtype:str
    """
    dagpath = "%s|%s" % (left.strip("|"), right.strip("|"))
    if left.startswith("|"):
        dagpath = "|" + dagpath
    return dagpath