how can i calculate the degree of node?

3 ビュー (過去 30 日間)
ali hadjer
ali hadjer 2015 年 11 月 8 日
編集済み: Walter Roberson 2015 年 11 月 9 日
how can i calculate the degree of node?
want to wait until i have calculated the degree for every node and then once that has been completed, find that node with the maximum degree and minimum distance to the sink. and plot the node
if (d<(handles.r))&&(i~=j)
degree(i)=degree(i)+1;% CALCULE LEs nombre de neighbord( DEGRE) DES NOEUDS REDONDANTS
disp(degree(i))
if (max(degree))%&&(min(handles.d_sink))
plot([X1,X2],[Y1,Y2],'o','LineWidth',0.1);
grid on;
end
end
plzzzzz need help

回答 (1 件)

Steven Lord
Steven Lord 2015 年 11 月 8 日
Are you using one of the graph or digraph objects introduced in release R2015b? If so look at the DEGREE (for graph) or INDEGREE/OUTDEGREE (for digraph) functions listed on that documentation page.
  1 件のコメント
ali hadjer
ali hadjer 2015 年 11 月 8 日
no not the degree of graph i dont use the graph juste the point scatter in the area

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by