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??
script for getting edges in shortest path
-
- Posts:6
- Joined:03 Nov 2017 14:17 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: script for getting edges in shortest path
Up
Is there a particular filter to display only the nodes of the shortest path between two nodes ? With others requests like Ego-network ?
Guillaume
Is there a particular filter to display only the nodes of the shortest path between two nodes ? With others requests like Ego-network ?
Guillaume
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: script for getting edges in shortest path
Hi,
I don't think there is a filter for that, but filters can be extended with plugins.
Start a new plugin: https://github.com/gephi/gephi-plugins
Filter plugins examples: https://github.com/gephi/gephi-plugins- ... ple/filter
I don't think there is a filter for that, but filters can be extended with plugins.
Start a new plugin: https://github.com/gephi/gephi-plugins
Filter plugins examples: https://github.com/gephi/gephi-plugins- ... ple/filter
-
- Posts:6
- Joined:03 Nov 2017 14:17 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: script for getting edges in shortest path
Thanks for these new tools, they will be helpul.
Anyway that's a bit of a pity that the shortest path can be selected or colored but not to be found with filters.
Anyway that's a bit of a pity that the shortest path can be selected or colored but not to be found with filters.
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: script for getting edges in shortest path
Yeah, that would be a great core filter feature. Can you create an issue in github? https://github.com/gephi/gephi/issues
-
- Posts:6
- Joined:03 Nov 2017 14:17 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable