I need to find the minimum path from the source and destination, where the source and destination are the same node, and I need the minimum fixed number of nodes in the path. I decided to implement Dijkstra's algorithm (in Java) with an option in which k nodes are included in the minimum path. (k is the minimum number of nodes to cover). It is right? If yes, then any suggestion for implementation? thanks in advance
source share