We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 766ef2c commit 411d26bCopy full SHA for 411d26b
nx_cugraph/drawing/layout.py
@@ -89,11 +89,10 @@ def forceatlas2_layout(
89
x_start = start_pos_arr[:, 0]
90
y_start = start_pos_arr[:, 1]
91
92
- # match the float dtype on input graph's edgelist
93
- dtype = _get_float_dtype(dtype, graph=G, weight=weight)
94
-
95
if weight is not None:
96
- G = _to_graph(G, weight, 1, dtype)
+ # match the float dtype on input graph's edgelist, default to float32
+ G = _to_graph(G, weight, 1, _get_float_dtype(dtype))
+ dtype = _get_float_dtype(dtype, graph=G, weight=weight)
97
G_plc = G._get_plc_graph(weight, 1, dtype)
98
else:
99
G = _to_graph(G)
0 commit comments