Package cdc.graphs.impl
Class GraphPrinter
java.lang.Object
cdc.graphs.impl.GraphPrinter
Utility class used to print a graph as text.
Mainly intended for debug purposes.
- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptionstatic <N,E> void print(GraphAdapter<N, E> adapter, boolean details, PrintStream out) Print a graph (adapter) to an output stream.
-
Method Details
-
print
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.
-