Skip to content

Commit 1bfb1ee

Browse files
committed
Updates
1 parent 8d5ef49 commit 1bfb1ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nx_cugraph/drawing/layout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def forceatlas2_layout(
6666
if pos is not None:
6767
if not isinstance(pos, dict):
6868
raise TypeError(f"pos must be dict or None; got {type(pos)}")
69+
# NOTE currently only x & y (dim=2) coordinated are supported by PLC
70+
# greater dimensions should be supported in the future to align with nx
6971
start_pos_arr = cp.array(list(pos.values()))
7072
x_start = start_pos_arr[:, 0]
7173
y_start = start_pos_arr[:, 1]

nx_cugraph/tests/test_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def test_forceatlas2(get_graph):
3030
res_cg = nxcg.forceatlas2_layout(Gcg)
3131

3232
assert len(res_nx) == len(res_cg)
33-
# for each pos element in res_nx assert that it's equal to res_cg
33+
assert res_nx.keys() == res_cg.keys()

0 commit comments

Comments
 (0)