script for getting edges in shortest path
Posted: 19 Aug 2013 17:02
i am new in this exciting aplication and also i am trying to learn programation languages for being able to do the things i want, but this is going to be a long process i guess.
The first i am trying is to get a list of the edges taking part in a shortest path between 2 nodes in a DIRECTED graph, using scripting console (from scripting plugin).
For example, i would like to define a function shortest_path(v1, v2) and get a list of the edges [e1, e4, e5] that are in this path.
Some help please??
The first i am trying is to get a list of the edges taking part in a shortest path between 2 nodes in a DIRECTED graph, using scripting console (from scripting plugin).
For example, i would like to define a function shortest_path(v1, v2) and get a list of the edges [e1, e4, e5] that are in this path.
Some help please??