Update to new framework

邻接矩阵变成邻接表，轻松又愉快……