Skip to content
Prev Previous commit
Next Next commit
match up the interface with nx#6840
  • Loading branch information
MridulS committed Aug 24, 2023
commit c5cffc6b00c685fde24afda25ab1f02fb5dc5e62
6 changes: 6 additions & 0 deletions graphblas_algorithms/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand All @@ -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(
Expand Down