@@ -0,0 +1,1401 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkGraphLayoutView;%0Aimport vtk.vtkMutableUndirectedGraph;%0Aimport vtk.vtkSimple2DLayoutStrategy;%0A%0Apublic class VisualizeGraph %0A%7B%0A%0A  //-----------------------------------------------------------------%0A  // Load VTK library and print which library was not properly loaded%0A  static %0A  %7B%0A    if (!vtkNativeLibrary.LoadAllNativeLibraries()) %0A    %7B%0A      for (vtkNativeLibrary lib : vtkNativeLibrary.values())%0A      %7B%0A        if (!lib.IsLoaded()) %0A        %7B%0A          System.out.println(lib.GetLibraryName() + %22 not loaded%22);%0A        %7D%0A      %7D%0A    %7D%0A      vtkNativeLibrary.DisableOutputWindow(null);%0A  %7D%0A  // -----------------------------------------------------------------%0A%0A  public static void main(String args%5B%5D) %0A  %7B%0A%0A    vtkMutableUndirectedGraph G = new vtkMutableUndirectedGraph();%0A    int v1 = G.AddVertex();%0A    int v2 = G.AddVertex();%0A%0A    G.AddGraphEdge(v1, v2);%0A    G.AddGraphEdge(v1, v2);%0A%0A    vtkGraphLayoutView GraphLayoutView = new vtkGraphLayoutView();%0A    GraphLayoutView.AddRepresentationFromInput(G);%0A    GraphLayoutView.SetLayoutStrategy(%22Simple 2D%22);%0A    GraphLayoutView.ResetCamera();%0A    GraphLayoutView.Render();%0A%0A%0A    vtkSimple2DLayoutStrategy Simple2DLayoutStrategy = new vtkSimple2DLayoutStrategy();%0A    Simple2DLayoutStrategy.SetRandomSeed(0);%0A    GraphLayoutView.GetLayoutStrategy();%0A    GraphLayoutView.GetInteractor().Start();%0A%0A  %7D%0A%0A%7D%0A

Create VisualizeGraph.java