From c5cffc6b00c685fde24afda25ab1f02fb5dc5e62 Mon Sep 17 00:00:00 2001 From: Mridul Seth Date: Thu, 24 Aug 2023 16:39:09 +0400 Subject: [PATCH] match up the interface with nx#6840 --- graphblas_algorithms/interface.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/graphblas_algorithms/interface.py b/graphblas_algorithms/interface.py index 8b92b1a..8e17843 100644 --- a/graphblas_algorithms/interface.py +++ b/graphblas_algorithms/interface.py @@ -177,7 +177,9 @@ def convert_from_nx( node_attrs=None, preserve_edge_attrs=None, preserve_node_attrs=None, + preserve_graph_attrs=None, name=None, + graph_name=None, *, weight=None, # For nx.__version__ <= 3.1 ): @@ -191,6 +193,10 @@ def convert_from_nx( raise NotImplementedError("non-None `node_attrs` is not implemented") if preserve_node_attrs: raise NotImplementedError("`preserve_node_attrs=True` is not implemented") + if preserve_graph_attrs: + raise NotImplementedError("`preserve_graphs_attrs=True` is not implemented") + if graph_name: + raise NotImplementedError("Not possible to set a graph name") if edge_attrs: if len(edge_attrs) > 1: raise NotImplementedError(