|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeersim.reports.GraphObserver
peersim.reports.GraphPrinter
public class GraphPrinter
Prints the whole graph in a given format.
Parameter Summary | |
---|---|
outf
This is the prefix of the filename where the graph is saved. |
|
format
The name for the format of the output. |
Parameters inherited from class peersim.reports.GraphObserver |
---|
undir |
Field Summary |
---|
Fields inherited from class peersim.reports.GraphObserver |
---|
g, ga, name, pid, undir |
Constructor Summary | |
---|---|
GraphPrinter(java.lang.String name)
Standard constructor that reads the configuration parameters. |
Method Summary | |
---|---|
boolean |
execute()
Saves the graph according to the specifications in the configuration. |
Methods inherited from class peersim.reports.GraphObserver |
---|
updateGraph |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameter Detail |
---|
outf
format
WireFromFile
can read this format.
Other supported formats are "chaco" to be used with Yehuda Koren's
Embedder, "netmeter" to be used with Sergi Valverde's netmeter and also
with pajek,
"edgelist" that dumps one (directed) node pair in each line for each edge,
"gml" that is a generic format of many graph tools, and "dot" that can
be used with the graphviz package.
GraphIO.writeEdgeList(peersim.graph.Graph, java.io.PrintStream)
,
GraphIO.writeChaco(peersim.graph.Graph, java.io.PrintStream)
,
GraphIO.writeNeighborList(peersim.graph.Graph, java.io.PrintStream)
,
GraphIO.writeNetmeter(peersim.graph.Graph, java.io.PrintStream)
Constructor Detail |
---|
public GraphPrinter(java.lang.String name)
name
- the configuration prefix for this classMethod Detail |
---|
public boolean execute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |