Skip to content

Commit 6c2f87a

Browse files
committed
briefer parameters
1 parent c5c5a9d commit 6c2f87a

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

tests/QuikGraph.Tests/Algorithms/Condensation/EdgeMergeCondensationGraphAlgorithmTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,10 @@ public void EdgeCondensationSomeVertices()
175175
var edge82 = Edge.Create(8, 2);
176176

177177
var graph = new BidirectionalGraph<int, IEdge<int>>();
178-
graph.AddVerticesAndEdgeRange(new[]
179-
{
178+
graph.AddVerticesAndEdgeRange(
180179
edge12, edge13, edge23, edge38, edge42, edge43, edge44,
181180
edge45, edge56, edge57, edge76, edge71, edge89, edge82
182-
});
181+
);
183182

184183
IMutableBidirectionalGraph<int, MergedEdge<int, IEdge<int>>> condensedGraph =
185184
graph.CondensateEdges(v => v == 4 || v == 8);

tests/QuikGraph.Tests/Algorithms/Condensation/WeaklyConnectedCondensationGraphAlgorithmTests.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using JetBrains.Annotations;
@@ -128,11 +128,10 @@ public void OneWeaklyConnectedComponent()
128128
var edge82 = Edge.Create(8, 2);
129129

130130
var graph = new AdjacencyGraph<int, IEdge<int>>();
131-
graph.AddVerticesAndEdgeRange(new[]
132-
{
131+
graph.AddVerticesAndEdgeRange(
133132
edge12, edge13, edge23, edge42, edge43, edge45,
134133
edge56, edge57, edge76, edge71, edge89, edge82
135-
});
134+
);
136135

137136
IMutableBidirectionalGraph<AdjacencyGraph<int, IEdge<int>>, CondensedEdge<int, IEdge<int>, AdjacencyGraph<int, IEdge<int>>>> condensedGraph =
138137
graph.CondensateWeaklyConnected<int, IEdge<int>, AdjacencyGraph<int, IEdge<int>>>();
@@ -160,11 +159,10 @@ public void MultipleWeaklyConnectedComponents()
160159
var edge89 = Edge.Create(8, 9);
161160

162161
var graph = new AdjacencyGraph<int, IEdge<int>>();
163-
graph.AddVerticesAndEdgeRange(new[]
164-
{
162+
graph.AddVerticesAndEdgeRange(
165163
edge12, edge13, edge23, edge42, edge43,
166164
edge56, edge57, edge76, edge89
167-
});
165+
);
168166

169167
IMutableBidirectionalGraph<AdjacencyGraph<int, IEdge<int>>, CondensedEdge<int, IEdge<int>, AdjacencyGraph<int, IEdge<int>>>> condensedGraph =
170168
graph.CondensateWeaklyConnected<int, IEdge<int>, AdjacencyGraph<int, IEdge<int>>>();

0 commit comments

Comments
 (0)