Added
avoid
option inGraph#path
You can now pass an array of nodes to avoid when computing the path.
Example:
route.path('A', 'D', { avoid: ['C', 'F'] });
Thanks @doesntgolf for the contribution!
avoid
option in Graph#path
You can now pass an array of nodes to avoid when computing the path.
Example:
route.path('A', 'D', { avoid: ['C', 'F'] });
Thanks @doesntgolf for the contribution!