Skip to content

Instantly share code, notes, and snippets.

View wuqifu's full-sized avatar
🎯
Focusing

Wu Qifu wuqifu

🎯
Focusing
View GitHub Profile
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;