How to plot nodes and links representing an adjacency matrix without coordinates?

Hi all,
I am having an adjacency matrix with more than 800 nodes and would like to plot the nodes and edges in a similar fashion than do the gplot or wgplot commands (with varying edge thickness for higher weights). However, I do not have the coordinates of the nodes and am looking for the ideal coordinates that show clustering of nodes. I tried using biograph - but the number of nodes is too high. I also tried to do it in graphviz but the website is down and I couldn't figure out what to do. I finally used fruchterman_reingold_force_directed_layout but I cannot find the function fruchterman_reingold_mex.m, which is required for this.
Thank you very much!

回答 (1 件)

Steven Lord
Steven Lord 2016 年 4 月 22 日

0 投票

If you're using release R2015b or later, create a graph or digraph object and call plot on that object.

1 件のコメント

Nina Buchmann
Nina Buchmann 2016 年 4 月 22 日
Thank you! How can I change the thickness of the edges based on the weights as in wgplot? Thanks!

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

カテゴリ

ヘルプ センター および File ExchangeGraph and Network Algorithms についてさらに検索

質問済み:

2016 年 4 月 22 日

コメント済み:

2016 年 4 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by