public class DotWriter<V,E> extends Object
Modifier and Type | Field and Description |
---|---|
protected DecimalFormat |
labelFormatter |
Constructor and Description |
---|
DotWriter()
graph graphname { // The label attribute can be used to change the label
of a node a [label="Foo"]; // Here, the node shape is changed.
|
Modifier and Type | Method and Description |
---|---|
void |
save(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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 . |
protected DecimalFormat labelFormatter
public DotWriter()
public void save(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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(edu.uci.ics.jung.graph.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
Copyright © 2014. All rights reserved.