public class Export
extends java.lang.Object
Constructor and Description |
---|
Export() |
Modifier and Type | Method and Description |
---|---|
static <V,E> void |
writeDNet(edu.uci.ics.jung.graph.Graph<V,E> G,
java.lang.String fname)
Write a .net file (pajek format) corresponding to the graph G (directed version).
|
static <V,E> void |
writeGV(java.lang.String fname,
edu.uci.ics.jung.graph.Graph<V,E> G)
Write a .gv file (GraphViz format) corresponding to the graph G.
|
static <V,E> void |
writeNet(edu.uci.ics.jung.graph.Graph<V,E> G,
java.lang.String fname)
Write a .net file (pajek format) corresponding to the graph G (undirected version).
|
public static <V,E> void writeNet(edu.uci.ics.jung.graph.Graph<V,E> G, java.lang.String fname)
G
- undirected graph.fname
- name of the filepublic static <V,E> void writeDNet(edu.uci.ics.jung.graph.Graph<V,E> G, java.lang.String fname)
G
- directed graph.fname
- name of the filepublic static <V,E> void writeGV(java.lang.String fname, edu.uci.ics.jung.graph.Graph<V,E> G) throws java.io.IOException
fname
- name of the fileG
- graphjava.io.IOException