Skip to content

Commit 9e17684

Browse files
authored
Update README.md
1 parent 0815785 commit 9e17684

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Dijkstra.NET Dijkstra algorithm in C# [![NuGet Version](https://img.shields.io/badge/Dijkstra.NET-1.0.8-blue.svg)](https://www.nuget.org/packages/Dijkstra.NET)
1+
# Dijkstra.NET Dijkstra algorithm in C# [![NuGet Version](https://img.shields.io/badge/Dijkstra.NET-1.0.9-blue.svg)](https://www.nuget.org/packages/Dijkstra.NET)
22

3-
Dijkstra algorithm which use priority queue thus complexity is equal O(ElogV) where E is number of edges and V is number of vertices. Used data structures are based on interfaces so you can implement your own or reused present. Simply example below. More information about algorithm you can find on the [wikipedia](https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm).
3+
Dijkstra algorithm which use priority queue thus complexity is equal O(ElogV) where E is number of edges and V is number of vertices. Used data structures are based on interfaces so you can implement your own or reused present. Simply example below. More information about algorithm you can find on [Wikipedia](https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm).
44

55
## Get Started
66
Install the latest version from NuGet
@@ -12,18 +12,20 @@ Install the latest version from NuGet
1212
## Simple example
1313

1414
```c#
15+
using Dijkstra.NET.Extensions;
16+
1517
var graph = new Graph<int, string>();
1618

1719
graph.AddNode(1);
1820
graph.AddNode(2);
1921

2022
graph.Connect(0, 1, 5, "some custom information in edge"); //First node has key equal 0
2123
22-
var dijkstra = new Dijkstra<int, string>(graph);
23-
IShortestPathResult result = dijkstra.Process(0, 1); //result contains the shortest path
24+
ShortestPathResult result = graph.Dijkstra(0, 1); //result contains the shortest path
25+
2426
result.GetPath();
2527
```
26-
## Parallel version
28+
## Parallel version - obsolete
2729

2830
Library provide parallel version of finding the shortest path in graph, it uses [breadth-first search](https://en.wikipedia.org/wiki/Breadth-first_search) algorithm and Map-Reduce technics. Parallel version use all cores to find the shortest path thus processing cost is higher than classic way, however it can gives quicker result when dense graph with similar weights was processed. Simple example below.
2931

0 commit comments

Comments
 (0)