You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SharpNeat.Drawing/Graph/DepthLayoutScheme.cs
+4-2
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,8 @@ public void Layout(
52
52
SizelayoutArea,
53
53
Span<Point>nodePosByIdx)
54
54
{
55
-
if(nodePosByIdx.Length!=digraph.TotalNodeCount)thrownewArgumentException("Node positions array length doesn't match the number of nodes in the graph.",nameof(nodePosByIdx));
55
+
if(nodePosByIdx.Length!=digraph.TotalNodeCount)
56
+
thrownewArgumentException("Node positions array length doesn't match the number of nodes in the graph.",nameof(nodePosByIdx));
if(nodePosByIdx.Length!=digraph.TotalNodeCount)thrownewArgumentException("Node positions array length doesn't match the number of nodes in the graph.",nameof(nodePosByIdx));
72
+
if(nodePosByIdx.Length!=digraph.TotalNodeCount)
73
+
thrownewArgumentException("Node positions array length doesn't match the number of nodes in the graph.",nameof(nodePosByIdx));
72
74
73
75
// Use previously determined depth info, if provided; otherwise calculate it and return via layoutSchemeData
0 commit comments