def METHOD_NAME(self, edge_type_to_exclude):
    return nx.restricted_view(
        self.graph,
        nodes=[],
        edges=(
            (a, b)
            for a, b in self.graph.edges
            if self.graph[a][b].get("edge_type") == edge_type_to_exclude
        ),
    )