Latest Version: 1.0.0
Author: Francesco Ficarola
Tests Author: Tadas Subonis
Co-Authors: Tadas Subonis, Justin Harris
v0.2 Author: Javier Campanini
GEXF File Format Java Library. It supports GEXF 1.2. This library is used to create and write GEXF files for visualizing graphs using Gephi and any other GEXF-supporting application. Versions up to 0.2.0 are mantained by Javier Campanini, under the Apache License, Version 2.0. The new version 0.3.0 and later will be maintained by Francesco Ficarola, under the same license.
Copyright 2012 Francesco Ficarola
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Enter in your pom.xml file the latest gexf4j dependency information: Maven Central
If you don't want to build a maven project, you can use the gexf4j library as a jar file in your project, but you also need to link the following dependencies:
- guava-18.0.jar
- woodstox-core-asl-4.4.1.jar
- junit-4.12.jar
- xmlunit-1.6.jar
- commons-io-2.4.jar
Run the following commands to compile and package gexf4j:
$ git clone https://github.com/francesco-ficarola/gexf4j.git
$ mvn clean package
If everything is fine, you will find the jar file in the target/ directory.
Now you can use the gex4j library (and all its dependencies) in your Java project. If you use a GNU/Linux distribution, you may find all dependencies in the ~/.m2/repository/ path.
In the following paths:
- src/examples/java
- src/test/java
- src/test/resources
you can find some example code (and resulting output files) that shows how to build GEXF graphs by using the gexf4j library.
The following changes have been applied:
- The "getNode(String id)" method has been added, link issue
- XML output files are now formatted in pretty printing mode, link issue
The following changes have been applied:
- Bug fix: node shape URI, link issue
- Bug fix: node shape name ("node-shape" is now "shape")
- StaticGexfGraph.java has been updated with some viz code.
The following changes have been applied:
- Added the ability to set a label for an edge.
- Added setting the edge type in connectTo
The following changes have been applied:
- Everything was integrated in the pom.xml file to correctly work with Maven.
- Version 0.4.2 was uploaded to Maven Central.
All libraries were added into the pom.xml as maven dependencies.
The following changes have been applied:
- Unit tests have been included
- STAX impementation has been changed from JDK default to woodstox
- Stream writing has been added for convenience
Additional changes:
- SimpleDateFormat variables are now safe for multi-threading
- Javadoc has been updated
The following changes were applied:
- Changed OutputStream writing to Writer output
- Added capability to add encoding to document
The following changes were applied:
- Javadoc was added
- Bug fix for the not-inclusion of the timeformat attribute in static graphs
- Smart names for the method parameters
- Two examples about static and dynamic graphs have been added (package "it.uniroma1.dis.wiserver.gexf4j.examples")
The following changes were applied:
- "timetype" attribute is renamed to "timeformat"
- "slices" and "slice" are renamed "spells" and "spell" correspondingly
- Now the "timeformat" can be integer, double (default), date, dateTime
- Open intervals (non-inclusive) are added: "startopen" and "endopen" attributes
- Bug fix on some "Attribute setTitle(String title)" method: the expression in checkArgument was wrong
- The methods "setStartDate(Date d)" and "setEndDate(d)" are changed in "setStartValue(Object o)" and "setEndValue(Object o)", respectly
- The Methods "Date getStartDate()" and "Date getEndDate()" are changed in "Object getStartValue()" and "Object getEndValue()", respectly
NOTE: The alpha version does NOT have a full test suite.
The underlying API has changed dramatically. Gexf4j now supports the entire GEXF file format, including:
- Data Graphs
- Dynamics
- Hierarchy
- Phylogeny
- Visualization