Skip to content

Instantly share code, notes, and snippets.

View ghanshaw's full-sized avatar

Greer Hanshaw ghanshaw

View GitHub Profile
// Java program to print DFS
// traversal from a given
// graph
import java.io.*;
import java.util.*;
// This class represents a
// directed graph using adjacency
// list representation
class Graph {