Skip to content

Edge labels not retained on graphml export #1516

Closed
@burnssa

Description

Hi I've noticed that in exports from Gephi to graphml, edge labels and ids are not retained as an edge property. Thus when I try to import Gephi-exported graphml files into my Neo4j database, the proper edge relationship types are not being added.

As an example here is some sample output from a Gephi Graphml export:

Gephi export (loses relationship types on import)

<edge source="n64" target="n65">
<data key="edgeid">e76</data>
<data key="edgelabel">has_next_message</data>
<data key="weight">1.0</data>
<data key="ids">e76</data>
<data key="labels">has_next_message</data>
<data key="types">has_next_message</data>
</edge>

Note that only source and target are retained on the edge property.

When I export to graphml from my database, using neo4j shell tools, I get edge descriptions like the following, which include id and label information not as a data key, but on the edge itself. When I import from graphml files like the following, the proper relationship types for each edge are set.

Neo4j Shell Tools Export (retains relationship types on import)

<edge id="e7975" source="n2982" target="n2983" label="has_response_request">
<data key="label">has_response_request</data>
<data key="created_at">1465180965</data>
<data key="updated_at">1465180965</data>
</edge>

How can I export with Gephi so that I can retain all edge properties on Neo4j import?

Thanks

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions