diff --git a/src/SharpNeat.Drawing/Graph/DepthLayoutScheme.cs b/src/SharpNeat.Drawing/Graph/DepthLayoutScheme.cs index 75eab9d4..fb91d776 100644 --- a/src/SharpNeat.Drawing/Graph/DepthLayoutScheme.cs +++ b/src/SharpNeat.Drawing/Graph/DepthLayoutScheme.cs @@ -52,7 +52,8 @@ public void Layout( Size layoutArea, Span nodePosByIdx) { - if(nodePosByIdx.Length != digraph.TotalNodeCount) throw new ArgumentException("Node positions array length doesn't match the number of nodes in the graph.", nameof(nodePosByIdx)); + if(nodePosByIdx.Length != digraph.TotalNodeCount) + throw new ArgumentException("Node positions array length doesn't match the number of nodes in the graph.", nameof(nodePosByIdx)); // Determine depth of each node. LightweightList[] nodesByLayer = BuildNodesByLayer(digraph); @@ -68,7 +69,8 @@ public void Layout( Span nodePosByIdx, ref object? layoutSchemeData) { - if(nodePosByIdx.Length != digraph.TotalNodeCount) throw new ArgumentException("Node positions array length doesn't match the number of nodes in the graph.", nameof(nodePosByIdx)); + if(nodePosByIdx.Length != digraph.TotalNodeCount) + throw new ArgumentException("Node positions array length doesn't match the number of nodes in the graph.", nameof(nodePosByIdx)); // Use previously determined depth info, if provided; otherwise calculate it and return via layoutSchemeData // parameter for future use. diff --git a/src/SharpNeat.Drawing/Graph/DirectedGraphViewModel.cs b/src/SharpNeat.Drawing/Graph/DirectedGraphViewModel.cs index 7140da22..dd018fb9 100644 --- a/src/SharpNeat.Drawing/Graph/DirectedGraphViewModel.cs +++ b/src/SharpNeat.Drawing/Graph/DirectedGraphViewModel.cs @@ -30,8 +30,6 @@ public sealed class DirectedGraphViewModel /// public Point[] NodePosByIdx { get; } - #region Construction - /// /// Construct with the provided digraph, weights, and node IDs. /// The node positions array is allocated, but must be updated with actual positions outside of this constructor. @@ -83,6 +81,4 @@ public DirectedGraphViewModel( NodeIdByIdx = nodeIdByIdx; NodePosByIdx = nodePosByIdx; } - - #endregion }