File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments