I want to choose start point,end point and vertexes that i must pass thru and the algorithm should find the shortest path for routing. I have table that stores Routes Id|Name|StoreA|StoreB|Kilometers,where StoreA and StoreB are FKs from Store table.I save data only for one way. Example:in table Routes 1|Lidl-Kaufland|1|2|157 and not for way back, because the distance is same.I'm not sure if I use BidirectionalGraph or UndirectedGraph from QuickGraph library.
For example this Road Network: 1: https://i.sstatic.net/mxcWe.png First i choose this 4 vertexes then i choose the start and the end one. I use QuickGraph 3.6 and the biggest question here is what graph should I use and is there algorithm for my purpose? Thank you all,I hope that i explained everything necessary to answer me.
Definitely sounds like a Travelling Sales Man problem. There are two was to approach this.
Hope this helps.