构建拉普拉斯矩阵 1、n阶矩阵 若u,v之间有边相连, C[u][v] = C[v][u] = -1, C[u][u] = du 2、去n-1阶主子式的行列式的绝对值 去掉第一行第一列 初等变换消成上三角矩阵,对角线乘积化为行列式
挂两个例题
https://www.luogu.com.cn/problem/P4208 https://www.luogu.com.cn/problem/P4111
https://www.luogu.com.cn/problem/P4208
https://www.luogu.com.cn/problem/P4111
https://www.youtube.com/watch?v=jeOU6KJFi8c
https://www.youtube.com/watch?v=eF9qWbuQLuw
https://www.youtube.com/watch?v=jeOU6KJFi8c
https://www.youtube.com/watch?v=eF9qWbuQLuw