Package it.unimi.di.prog2.h25
Class DiGraphVisitClient
java.lang.Object
it.unimi.di.prog2.h25.DiGraphVisitClient
Tests directed graph package with visits.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DiGraphVisitClient
public DiGraphVisitClient()
-
-
Method Details
-
main
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 aQueues.FIFOSupplier()
or aQueues.LIFOSupplier()
) according to the first letter of the first argument.- Parameters:
args
- the first argument is eitherF
for a FIFO visit, or some other value for a LIFO visit.
-