Class 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 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.