フィルターのクリア

How can I change 'nodesize' (for graph plot) according to the weighted edge?

9 ビュー (過去 30 日間)
sanglok Yoo
sanglok Yoo 2017 年 6 月 3 日
コメント済み: sanglok Yoo 2017 年 6 月 5 日
Hello
I have adjacent matrix data
I'd like to plot(graph) based on adjacent matrix data
How can I change each nodesize according to weighted edge of node?
I changed each edgewidth according to weighted edge of node, but I don't know nodesize
My scripts as follows;
a_graph = graph(A); % A : adjacent matrix
figure
P_a = plot(a_graph);
LWidths = 3*graph_1_jigging.Edges.Weight/max(a_graph.Edges.Weight);
set(P_a, 'LineWidth',LWidths);
set(P_a,'EdgeAlpha',0.25);
set(P_a,'EdgeColor', 'k');
set(P_a,'NodeColor','r');

採用された回答

Steven Lord
Steven Lord 2017 年 6 月 5 日
Use the highlight function to increase the widths of the edge lines and the sizes of the nodes.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetworks についてさらに検索

Community Treasure Hunt

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

Start Hunting!