Class GraphMLDemo

java.lang.Object
org.jgrapht.demo.GraphMLDemo

public final class GraphMLDemo
extends java.lang.Object
This class demonstrates exporting and importing a graph with custom vertex and edge attributes in GraphML. Vertices of the graph have an attribute called "color" and a "name" attribute. Edges have a "weight" attribute as well as a "name" attribute. The demo constructs a complete graph with random edge weights and exports it as GraphML. The output is then re-imported into a second graph.
  • Constructor Summary

    Constructors 
    Constructor Description
    GraphMLDemo()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)
    Main demo method

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • main

      public static void main​(java.lang.String[] args)
      Main demo method
      Parameters:
      args - command line arguments