So i have been reading this pseudocode which looks like this:
%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;
My question is what does :=
mean here? Is it this?:
a(vertex,vertex) = a(vertex,vertex)+number of direct neighbors;
or is it this:
a(vertex,vertex) = number of direct neighbors;