This file contains 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
public class GraphByMatrix { | |
public static final boolean UNDIRECTED_GRAPH = false;//无向图标志 | |
public static final boolean DIRECTED_GRAPH = true;//有向图标志 | |
public static final boolean ADJACENCY_MATRIX = true;//邻接矩阵实现 | |
public static final boolean ADJACENCY_LIST = false;//邻接表实现 | |
public static final int MAX_VALUE = Integer.MAX_VALUE; | |
private boolean graphType; | |
private boolean method; |