PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, June 28, 2022

[FIXED] How to filter edges by attributes in Gephi?

 June 28, 2022     gephi, graph, graph-visualization, visualization     No comments   

Issue

I have some edges with their corresponding labels, and I want to filter in only records with label 1, but it just doesn't work as shown below.

enter image description here

The function works to filter in nodes but doesn't work for edges. I thought it would be due to that there were too many edges, then I tried .gexf files with only hundreds of edges, but the problem remains. I also tried to create a new column in the app or create the column using Python in the .gexf file, but both failed. Sometimes an error arises: an error occurred while fetching data.

I wonder how to filter in only matched edges on Gephi? Thanks in advance.


Solution

It seems that you must have an entry for every edge in the Label column.

What you can do in your situation:

  1. Sort the edges according to Label by clicking on the column name (might click twice).

  2. Select edges that don't have a label yet.

  3. Right-click: Edit all edges.

  4. Give a default Label in the edit menu.

If you don't already have labels and want to manually assign them in the Data Table, you can also use Fill column with a value and give a default value to every edge.

This is probably a bug since we get a NullPointerException sometimes, probably because filtering doesn't expect null values in the label column (at least judging after a quick glance at the stack trace). You might file this to their GitHub Issue Page over here.



Answered By - Splines
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing