Skip to content

Commit 348d913

Browse files
authored
Merge pull request #32 from matiii/feature/issue-19-parallel-dijkstra
Refactor
2 parents e21c850 + 2d2175d commit 348d913

File tree

19 files changed

+69
-57
lines changed

19 files changed

+69
-57
lines changed

src/Dijkstra.NET.Benchmark/BenchmarkIt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using BenchmarkDotNet.Attributes;
44
using BenchmarkDotNet.Attributes.Jobs;
55
using BenchmarkDotNet.Engines;
6-
using Dijkstra.NET.Extensions;
6+
using Dijkstra.NET.ShortestPath;
77

88
namespace Dijkstra.NET.Benchmark
99
{

src/Dijkstra.NET.Benchmark/DijkstraBenchmarkBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
2-
using Dijkstra.NET.Contract;
3-
using Dijkstra.NET.Model;
2+
using Dijkstra.NET.Graph;
43

54
namespace Dijkstra.NET.Benchmark
65
{

src/Dijkstra.NET.Tests/Dijkstra.NET.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.0</TargetFramework>

src/Dijkstra.NET.Tests/EdgeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Dijkstra.NET.Model;
1+
using Dijkstra.NET.Graph;
22
using Xunit;
33

44
namespace Dijkstra.NET.Tests

src/Dijkstra.NET.Tests/Extensions/ShortestPathExtensionsTests.cs renamed to src/Dijkstra.NET.Tests/ShortestPath/DijkstraExtensionsTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using System.Linq;
2-
using Dijkstra.NET.Extensions;
3-
using Dijkstra.NET.Model;
2+
using Dijkstra.NET.Graph;
3+
using Dijkstra.NET.ShortestPath;
44
using Xunit;
55

6-
namespace Dijkstra.NET.Tests.Extensions
6+
namespace Dijkstra.NET.Tests.ShortestPath
77
{
8-
public class ShortestPathExtensionsTests
8+
public class DijkstraExtensionsTests
99
{
1010
[Fact]
1111
public void DijkstraGraphShould_Find_Path_In_Multi_Paths_Graph()

src/Dijkstra.NET/Dijkstra.NET.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard1.3;net40</TargetFrameworks>
5-
<Version>1.1.0</Version>
5+
<Version>1.2.0</Version>
66
<Authors>Mateusz Mazurek</Authors>
77
<Company />
88
<Description>High performance the shortest path in directed graph with non negative weights algorithm implementation.</Description>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
2-
using Dijkstra.NET.Model;
32

4-
namespace Dijkstra.NET.Delegates
3+
namespace Dijkstra.NET.Graph
54
{
65
public delegate void ChildAction<T, TEdgeCustom>(in Edge<T, TEdgeCustom> edge) where TEdgeCustom : IEquatable<TEdgeCustom>;
76
}

src/Dijkstra.NET/Model/Edge.cs renamed to src/Dijkstra.NET/Graph/Edge.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
using System;
22
using System.Collections.Generic;
3-
using Dijkstra.NET.Contract;
43

5-
namespace Dijkstra.NET.Model
4+
namespace Dijkstra.NET.Graph
65
{
76
public readonly struct Edge<T, TCustom>: IEquatable<Edge<T, TCustom>> where TCustom: IEquatable<TCustom>
87
{

src/Dijkstra.NET/Model/Graph.cs renamed to src/Dijkstra.NET/Graph/Graph.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
using System.Collections;
33
using System.Collections.Generic;
44
using System.Linq;
5-
using Dijkstra.NET.Contract;
65

7-
namespace Dijkstra.NET.Model
6+
namespace Dijkstra.NET.Graph
87
{
98
public class Graph<T, TEdgeCustom>: IGraph<T, TEdgeCustom>, IEnumerable<INode<T, TEdgeCustom>> where TEdgeCustom : IEquatable<TEdgeCustom>
109
{

src/Dijkstra.NET/Contract/IGraph.cs renamed to src/Dijkstra.NET/Graph/IGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace Dijkstra.NET.Contract
3+
namespace Dijkstra.NET.Graph
44
{
55
public interface IGraph<T, TEdgeCustom> where TEdgeCustom : IEquatable<TEdgeCustom>
66
{

0 commit comments

Comments
 (0)