graphvisualizationgraph-visualizationgephi

How to filter edges by attributes in Gephi?


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?


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.