1
所以我一直在閱讀這個僞代碼看起來像這樣:閱讀僞代碼
%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;
看到這個以前的問題超過你想知道':=':[http://stackoverflow.com/questions/5344694/what-does-do](http://stackoverflow.com/questions/ 5344694 /什麼,做-DO)。另見維基百科文章:[http://en.wikipedia.org/wiki/Assignment_(computer_science)](http://en.wikipedia.org/wiki/Assignment_(computer_science))。 – horchler
這與MATLAB有什麼關係? –