Package cdc.graphs.impl
Class GraphPrinter
- java.lang.Object
-
- cdc.graphs.impl.GraphPrinter
-
public final class GraphPrinter extends Object
Utility class used to print a graph as text.Mainly intended for debug purposes.
- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <N,E>
voidprint(GraphAdapter<N,E> adapter, boolean details, PrintStream out)Print a graph (adapter) to an output stream.
-
-
-
Method Detail
-
print
public static <N,E> void print(GraphAdapter<N,E> adapter, boolean details, PrintStream out)
Print a graph (adapter) to an output stream.- Type Parameters:
N- Node class.E- Edge class.- Parameters:
adapter- The graph adapter.details- If true, print detailed information.out- The stream to use.
-
-