The purpose of this sample is to create a new polyline feature that correspond to the Shortest Path
between the two input points. The sample is using the Dijkstra algorithm with a weight corresponding
to the Euclidian distance between nodes of the graph. The Planar Graph used here is the Topology Graph.
How to use:
Register the dll on your machine.
Use Categories to add the dll to the 'ESRI Edit Tasks' component category.
Make sure you have either a Geodatabase Topology or a Map Topology (if not then please build one) present in the map document
Start an edit session and select the Create Shortest Path Feature task
Set the Current Layer to a polyline feature class.
Using the sketch tool create two points that correspond to the Start and End Point from which the shortest will be calculated.
Finish the sketch, a TopologyGraph will be built and the shortest path feature will be created in the output feature class.
An edit session, a 8.3 Geodatabase Topology or a 8.3 Map Topology, a polyline feature class that will be used as ouput.