Connecting nodes based on distance

Get help with your data
Post Reply [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
Azureflame
Posts:1
Joined:14 Mar 2018 18:18
[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
Connecting nodes based on distance

Post by Azureflame » 14 Mar 2018 18:25

So I have a csv file containing 3 columns: ID, Latitude, Longitude. I have about 600 unique rows.

After importing spreadsheet and adjusting layout to geo layout, I now need to connect the nodes based on the distance between them (ie. if the nodes are 150m apart, connect them).

But first i want to try connecting all of the nodes irregardless of their distance between. However I am unable to find a solution that will allow me to automatically connect all nodes together.

Any one knows how? If more details are required, please do let me know and I will try to give more information about the problem.

User avatar
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: Connecting nodes based on distance

Post by eduramiba » 15 Mar 2018 11:42

Hi,

You will need to do this logic with some code outside Gephi.

Post Reply
[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
[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