1 package com.github.dexecutor.executor.graph; 2 3 import java.io.Writer; 4 5 /** 6 * Provides an API to Traverse a given graph 7 * @author Nadeem Mohammad 8 * 9 * @param <T> 10 */ 11 public interface Traversar <T extends Comparable<T>> { 12 /** 13 * Traverse the given graph and print it on the Writer 14 * @param graph 15 * @param writer 16 */ 17 void traverse(final Graph<T> graph, final Writer writer); 18 }