[SOLVED] Detecting and selecting isolated components

Visual manipulations and refinements
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
User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:
[SOLVED] Detecting and selecting isolated components

Post by seinecle » 01 Sep 2010 12:27

It is often useful to select isolated components all together to work with them: to delete them, color them in a certain way, or to count them, etc.

Could it be possible to implement a feature which would automatically detect, count and select all the components not attached to the main component? (ie, which would detect isolated components). That could be one of the topology filters...

For now, there is a "weakly connected components" function in the statistics tab, but it does not serve the purposes described above.

Best,

Clement

User avatar
mbastian
Gephi Architect
Posts:728
Joined:10 Dec 2009 10:11
Location:San Francisco, CA
[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: Detecting and selecting isolated components

Post by mbastian » 05 Oct 2010 18:18

Since 0.7beta, you have a Giant Component Filter. By combining it with the NOT operator you can get all isolated components.

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: Detecting and selecting isolated components

Post by seinecle » 17 Oct 2010 13:47

Brilliant!

rotifan
Posts:2
Joined:20 Apr 2011 05:25
[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: Detecting and selecting isolated components

Post by rotifan » 20 Apr 2011 05:32

What if there are multiple sizable issolated components? I'd like to drop nodes that are alone or with fewer than n (maybe 5) connected nodes (not n edges from a node). Giant component works great for highlighting the single largest component, but what about retaining other sizable components?

User avatar
mbastian
Gephi Architect
Posts:728
Joined:10 Dec 2009 10:11
Location:San Francisco, CA
[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: Detecting and selecting isolated components

Post by mbastian » 21 Apr 2011 05:56

You can use the Partition Count filter for doing that. Give a range with lower bound at 5 and it will keep Partitions with equal or higher than 5 elements. Use the filter on the 'Component' column, which is computed when you run the 'Connected Components' metric.

rotifan
Posts:2
Joined:20 Apr 2011 05:25
[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: Detecting and selecting isolated components

Post by rotifan » 21 Apr 2011 13:33

Perfect. Thanks!

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