所以我一直在阅读这个伪代码,它看起来像这样:
%setting up matrix A
for vertex = 1...n
a(vertex,vertex) := number of direct neighbors;
for the direct neighbors of vertex
if the neighbor is not a pole
a(vertex,neighbor) := -1;
我的问题是这里是什么:=
意思?是这个吗:
a(vertex,vertex) = a(vertex,vertex)+number of direct neighbors;
或者是这样的:
a(vertex,vertex) = number of direct neighbors;