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

[export gexf] void attributes are not exported #985

Closed
pierrempr opened this issue Dec 18, 2014 · 2 comments
Closed

[export gexf] void attributes are not exported #985

pierrempr opened this issue Dec 18, 2014 · 2 comments
Assignees
Labels
GEXF IO Wishlist New features (not a bug)
Milestone

Comments

@pierrempr
Copy link

Hi,

I have encountered some issues when I exported my graph in the format gexf. My previous structure, which I imported, of data is an gexf graph. I use gephi toolkit to spatialize the graph and add nodes color . Some of attributes values' are void. As in this exemple :

image

After spatialization and other actions on my graph, i export it in a format gexf. And when I look at the structure of my new file, I noticed that the attributes which have void values are not in. As in the exemple, this is the gexf exported :

image

-> There are attribute 4/5 and 7 which are missing.

I found where does the issue come from. It's in the code of gephi-toolkit, in the class "ExporterGEXF.java".
image
Especially in the method
image

In this method, all nodes are iterated and for each node all attributes are iterated. Next, the current attribute is tested : if it is not null, we write the attribute in the xml file. If not, the attribute null is ignored.

image

I am not going re compil the gephi toolkit, so i will replace all null attributes by a space (string).

==> Now my question is, is it possible to enable this behavior to let all attributes even if they are null ?

@mbastian mbastian self-assigned this Sep 12, 2015
@mbastian mbastian added Wishlist New features (not a bug) GEXF IO labels Nov 26, 2015
@mbastian
Copy link
Member

Yes this should be possible but I would recommend to add an option for that. Some people might not want null values so it should be configurable.

@mbastian mbastian added this to the 0.10.0 milestone Oct 24, 2022
@mbastian
Copy link
Member

I've implemented this feature with a new option on GEXF
Screenshot 2022-10-24 at 22 40 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GEXF IO Wishlist New features (not a bug)
Projects
None yet
Development

No branches or pull requests

2 participants