Class DiGraphVisitClient

java.lang.Object
it.unimi.di.prog2.h25.DiGraphVisitClient

public class DiGraphVisitClient extends Object
Tests directed graph package with visits.
  • Constructor Details

    • DiGraphVisitClient

      public DiGraphVisitClient()
  • Method Details

    • main

      public static void main(String[] args)
      Reads a graph from the standard input and performs a visit.

      More precisely, reads a sequence of lines, each containing two strings separated by a space corresponding to the source and destination of an arc. The first source is the starting node of the visit. Then it performs a visit using a Queue supplier that is either a Queues.FIFOSupplier() or a Queues.LIFOSupplier()) according to the first letter of the first argument.

      Parameters:
      args - the first argument is either F for a FIFO visit, or some other value for a LIFO visit.