Extends the Graph Modeling Language (GML) export of JGraphT to better supports the import to yED.
- Released: January 17, 2017
- Based on: JgraphT (and yED)
- Written by Hayato Hess and Contributors
The package com.github.systemdir.gml.examples
in the Example directory contains two small demo applications to help you get started.
To use the gml writer, ensure that your project has following maven dependencies:
<dependencies>
<dependency>
<groupId>com.github.systemdir.gml</groupId>
<artifactId>GMLWriterForYed</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.jgrapht</groupId>
<artifactId>jgrapht-core</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.jgrapht</groupId>
<artifactId>jgrapht-ext</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
After exporting the graph to a .gml file, import it in yED by using the open dialog. After importing, the graph will most likely look broken as every node is placed on top of each other. To resolve this, go to the Layout
menu in yED and select one fitting layout. Further, the Fit Node to Label
in the Tools
menu is useful when the labels are longer than the node's widths.