摘要: /** * 二维数组实现 图的邻接矩阵 */ public class DenseGraph { private int n; //图的节点 private int m; //图的边 private boolean directed; //是否为有向图或无向图 private int[][] arr 阅读全文
posted @ 2021-03-26 12:00 文所未闻 阅读(379) 评论(0) 推荐(0) 编辑