Optional
directedA boolean indicating whether the algorithm should only go along edges from source to target (default false).
The root node (selector or collection) where the algorithm starts.
Optional
weightA function that returns the positive numeric weight for this edge.
If no weight function is defined, a constant weight of 1 is used for each edge.
http://js.cytoscape.org/#eles.dijkstra