Skip to content

[export gexf] void attributes are not exported #985

Description

@pierrempr

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 ?

Activity

  1. self-assigned this
    on Sep 12, 2015
  2. mbastian commented on Nov 26, 2015

    @mbastian
    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.

  3. added a commit that references this issue on Oct 24, 2022
  4. added this to the 0.10.0 milestone on Oct 24, 2022
  5. mbastian commented on Oct 24, 2022

    @mbastian
    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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions