0

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.

matthias_h
  • 11,356
  • 9
  • 22
  • 40

1 Answers1

0

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.

maxkfranz
  • 11,896
  • 1
  • 27
  • 36