def load_nodes_from_file(file_path: str):
    """
    Loads nodes from file.

    :param file_path: path to file
    :return: list of nodes
    """
    nodes = []
    with open(file_path) as f:
        for line in f:
            nodes.append(int(line))
    return nodes