def node_exclusion_filter_builder(nodes: Iterable[BaseEntity]) -> NodePredicate:
node_set = set(nodes)<EOL>def exclusion_filter(_: BELGraph, node: BaseEntity) -> bool:<EOL><INDENT>"""<STR_LIT>"""<EOL>return node not in node_set<EOL><DEDENT>return exclusion_filter<EOL>
Build a filter that fails on nodes in the given list.