Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color nodes by partition incorrectly assigns attribute values for items with empty values #2900

Open
serenalotreck opened this issue Apr 2, 2024 · 1 comment

Comments

@serenalotreck
Copy link

Expected Behavior

If there are nodes in a network that don't have a value for an attribute in the Data Laboratory (i.e. an empty string fills the cell), they should come up as their own group when coloring nodes by partition for that attribute

Current Behavior

Gephi randomly assigns nodes with no value to one of the other groups, with no indication of how or why. It's very problematic because if there aren't a ton of missing values immediately evident in the Data Laboratory, it's not obvious that the representation of your data is completely incorrect for those values; I assumed that all of my nodes had been assigned a continent and only noticed because I was looking for something completely unrelated.

Possible Solution

Steps to Reproduce

  1. Make a graph with some attribute, in my case it's called continent
  2. Delete the value from one or more cells in the Data Laboratory under the continent column
  3. Go to Overview, and under the Appearance tab, select Nodes, Color, and Partition, and color by continent
  4. There will be no additional category for the nodes with the deleted values, and they will have been randomly assigned to another category

Context

I'm visualizing a graph that I made in networkx. I added attributes from a dictionary to the whole graph and saved it as .graphml; however, I did not explicitly add NaN values for those nodes that did not get assigned to a continent. I assumed that Gephi would be able to figure out that an empty attribute didn't belong in one of the other categories.

Your Environment

  • Version used: Gephi 0.10.1
  • Operating System: Windows 10
@serenalotreck
Copy link
Author

I had to do some manual arranging of the graph layout, so I'd really like a way to fill in NaN values for the empty cells in Data Laboratory as a temporary solution; but I can't figure out how to do it with the options I see. Would appreciate if anyone had a solution for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant