dynamic node creation

1 message Options
Embed this post
Permalink
sushil soni

dynamic node creation

Reply Threaded More More options
Print post
Permalink
I am trying to create two dynamic nodes (as source and destination) for finding the shortest path through dijkstra algo.

The method i am following to create a new dynamic node is as follows
(Node src =  lgb.getNode(new Coordinate(54.193869, 694.713989));)  

{where these coordinate are the coordinate retrieved from a mouse click on graph}

The output of src is "null" everytime, because of this, its not creating the path also in next step.

Kindly help me in this regard. Plz tell if there is any other way also to handle the dynamic node creation, where user can select the source and destination nodes from a mouse click from the map to find the shortest path b/w the two.

Waiting for an early response...

Sushil Soni.