|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object peersim.graph.GraphIO
public class GraphIO
Implements static methods to load and write graphs.
Method Summary | |
---|---|
static Graph |
readNewscastGraph(java.lang.String file,
int direction)
Read a graph in newscast graph format. |
static void |
writeChaco(Graph g,
java.io.PrintStream out)
Saves the given graph to the given stream in Chaco format. |
static void |
writeDOT(Graph g,
java.io.PrintStream out)
Saves the given graph to the given stream in DOT format. |
static void |
writeEdgeList(Graph g,
java.io.PrintStream out)
Prints graph in edge list format. |
static void |
writeGML(Graph g,
java.io.PrintStream out)
Saves the given graph to the given stream in GML format. |
static void |
writeNeighborList(Graph g,
java.io.PrintStream out)
Prints graph in neighbor list format. |
static void |
writeNetmeter(Graph g,
java.io.PrintStream out)
Saves the given graph to the given stream to be read by NETMETER. |
static void |
writeUCINET_DL(Graph g,
java.io.PrintStream out)
Saves the given graph to the given stream in UCINET DL nodelist format. |
static void |
writeUCINET_DLMatrix(Graph g,
java.io.PrintStream out)
Saves the given graph to the given stream in UCINET DL matrix format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void writeEdgeList(Graph g, java.io.PrintStream out)
public static void writeNeighborList(Graph g, java.io.PrintStream out)
public static void writeDOT(Graph g, java.io.PrintStream out)
public static void writeGML(Graph g, java.io.PrintStream out)
public static void writeNetmeter(Graph g, java.io.PrintStream out)
public static void writeUCINET_DL(Graph g, java.io.PrintStream out)
public static void writeUCINET_DLMatrix(Graph g, java.io.PrintStream out)
public static void writeChaco(Graph g, java.io.PrintStream out)
public static Graph readNewscastGraph(java.lang.String file, int direction) throws java.io.IOException
file
- Filename to readdirection
- If 0, the original directionality is preserved, if 1,
than each edge is reversed, if 2 then directionality is dropped and the
returned graph will be undirected.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |