Filtering edges also filters nodes

Discussion of development versions only
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
jacomyma
Gephi Core Developer
Posts:61
Joined:09 Feb 2010 23:23
Contact:
Filtering edges also filters nodes

Post by jacomyma » 11 Feb 2010 11:09

I noticed something strange when filtering edges. This is what happens:
1) I have a graph with a "hypertext" edge boolean value (some edges are "hypertext", some other aren't)
2) I put a "partition : hypertext" filter
3) when I filter by "hypertext = true" or "hypertext = false", my graph disappears
4) when I filter by "hypertext = true OR false" my graph is back

This is what I understand: when I filter my graph by edges, each edge filtered disappears with its two nodes. It isn't what I expected, I think that hiding the edges without hiding the nodes is more relevant. Anyway it could be useful to choose the behavior you want. Isn't it ?

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: Filtering edges also filters nodes

Post by mbastian » 15 Feb 2010 01:31

Filtering edges should only filter (i.e. hide or select) edges and keep nodes untouched.

I'll look if there is a problem and keep you updated.

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: Filtering edges also filters nodes

Post by mbastian » 16 Feb 2010 22:36

It is indeed a bug, I filled this bug report https://bugs.launchpad.net/gephi/+bug/522771

User avatar
jacomyma
Gephi Core Developer
Posts:61
Joined:09 Feb 2010 23:23
Contact:

Re: Filtering edges also filters nodes

Post by jacomyma » 23 Feb 2010 11:17

Thanks for the bug report.

I have a linked remarked, which this time may be a feature rather than a bug.
When I import a GDF and that some nodes miss, but are mentioned in edges, then "empty" nodes are created.

This behavior is new, since before Gephi was "forgetting" edges.

Both techniques are legitimate, but it may be useful to have the choice.

When I help my students to clean their data / to modify files, they sometimes just want to erase malformed nodes, and it's more easy if you don't have to erase also the edges...

aurelienb
Gephi Beta Tester
Posts:29
Joined:12 Dec 2009 13:09
Location:Everywhere
Contact:

Re: Filtering edges also filters nodes

Post by aurelienb » 23 Feb 2010 12:07

I think this 'choice' is already in todo list
(http://wiki.gephi.org/index.php/TODO)

User avatar
jacomyma
Gephi Core Developer
Posts:61
Joined:09 Feb 2010 23:23
Contact:

Re: Filtering edges also filters nodes

Post by jacomyma » 23 Feb 2010 12:26

Oh yeah thx, didn't notice.

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