This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.LinkedList; | |
| import java.util.Queue; | |
| import java.util.Stack; | |
| public class Graph { | |
| public Node rootNode; | |
| public ArrayList<Node> nodes = new ArrayList<Node>(); | |
| public int[][] adjMatrix;// Edges will be represented as adjacency Matrix | |
| int size; |