def METHOD_NAME(self, attribute=None):
    # Nodes containing an attribute
    if attribute:
        return nx.subgraph_view(self.backend, filter_node=lambda x: attribute in self.node(x))
    # Return all nodes
    return self.backend