I want to find a function that highlights the path from the following nodes:
a > b > c > d > a
The importance is highlighting the path back to 'a'.
Or even a function where you can predefine the route for the path.
I want to find a function that highlights the path from the following nodes:
a > b > c > d > a
The importance is highlighting the path back to 'a'.
Or even a function where you can predefine the route for the path.
There are several algorithms that can be used for finding paths (e.g. BFS, A*, etc).
As for highlighting, you should define your style appropriately -- probably with a highlight
class or similar.