Skip to content

Commit feb0ce3

Browse files
committed
update tests
1 parent a7df3db commit feb0ce3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/cugraph/cugraph/tests/structure/test_graph.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,10 @@ def test_vertex_list():
665665
)
666666

667667
G = nx.from_numpy_array(A)
668-
cG = cugraph.from_numpy_array(nx.to_numpy_array(G))
668+
669+
# Vertex list including isolated vertices
670+
vertices = cudf.Series(cupy.arange(0, A.shape[0]))
671+
cG = cugraph.from_numpy_array(nx.to_numpy_array(G), vertices=vertices)
669672

670673
assert len(G.nodes()) == len(cG.nodes())
671674

0 commit comments

Comments
 (0)