def get_nodes(node_file):
    """ Read nodes from a text file into a list """
    with open(node_file) as file_node:
        lines = file_node.readlines()

    nodes = []

    for line in [line.strip() for line in lines]:
        if not line.startswith("#"):
            nodes.append(line)

    return nodes