|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.io.PajekNetWriter<V,E>
public class PajekNetWriter<V,E>
Writes graphs in the Pajek NET format.
Labels for vertices may optionally be specified by implementations of
VertexStringer
. Edge weights are optionally specified by
implementations of Transformer
. Vertex locations
are optionally specified by implementations of
Transformer
. Note that vertex location coordinates
must be normalized to the interval [0, 1] on each axis in order to conform to the
Pajek specification.
Constructor Summary | |
---|---|
PajekNetWriter()
Creates a new instance. |
Method Summary | |
---|---|
void |
save(Graph<V,E> g,
String filename)
Saves g to filename ; no vertex labels are written out,
and the edge weights are written as 1.0. |
void |
save(Graph<V,E> g,
String filename,
org.apache.commons.collections15.Transformer<V,String> vs,
org.apache.commons.collections15.Transformer<E,Number> nev)
Saves g to filename . |
void |
save(Graph<V,E> g,
String filename,
org.apache.commons.collections15.Transformer<V,String> vs,
org.apache.commons.collections15.Transformer<E,Number> nev,
org.apache.commons.collections15.Transformer<V,Point2D> vld)
Saves g to filename . |
void |
save(Graph<V,E> g,
Writer w)
Saves g to w ; no vertex labels are written out,
and the edge weights are written as 1.0. |
void |
save(Graph<V,E> g,
Writer w,
org.apache.commons.collections15.Transformer<V,String> vs,
org.apache.commons.collections15.Transformer<E,Number> nev)
Saves g to w ; vertex labels are given by
vs and edge weights by nev . |
void |
save(Graph<V,E> graph,
Writer w,
org.apache.commons.collections15.Transformer<V,String> vs,
org.apache.commons.collections15.Transformer<E,Number> nev,
org.apache.commons.collections15.Transformer<V,Point2D> vld)
Writes graph to w . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PajekNetWriter()
Method Detail |
---|
public void save(Graph<V,E> g, String filename, org.apache.commons.collections15.Transformer<V,String> vs, org.apache.commons.collections15.Transformer<E,Number> nev, org.apache.commons.collections15.Transformer<V,Point2D> vld) throws IOException
g
to filename
. Labels for vertices may
be supplied by vs
. Edge weights are specified by nev
.
IOException
public void save(Graph<V,E> g, String filename, org.apache.commons.collections15.Transformer<V,String> vs, org.apache.commons.collections15.Transformer<E,Number> nev) throws IOException
g
to filename
. Labels are specified by
vs
, and edge weights by nev
; vertex coordinates
are not written out.
g
- the graph to write outfilename
- vs
- nev
-
IOException
public void save(Graph<V,E> g, String filename) throws IOException
g
to filename
; no vertex labels are written out,
and the edge weights are written as 1.0.
IOException
public void save(Graph<V,E> g, Writer w) throws IOException
g
to w
; no vertex labels are written out,
and the edge weights are written as 1.0.
IOException
public void save(Graph<V,E> g, Writer w, org.apache.commons.collections15.Transformer<V,String> vs, org.apache.commons.collections15.Transformer<E,Number> nev) throws IOException
g
to w
; vertex labels are given by
vs
and edge weights by nev
.
g
- w
- vs
- nev
-
IOException
public void save(Graph<V,E> graph, Writer w, org.apache.commons.collections15.Transformer<V,String> vs, org.apache.commons.collections15.Transformer<E,Number> nev, org.apache.commons.collections15.Transformer<V,Point2D> vld) throws IOException
graph
to w
. Labels for vertices may
be supplied by vs
(defaults to no labels if null),
edge weights may be specified by nev
(defaults to weights of 1.0 if null),
and vertex locations may be specified by vld
(defaults
to no locations if null).
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |