Creating adjacency matrices for network analysis

10 ビュー (過去 30 日間)
Ciaran Raymer
Ciaran Raymer 2018 年 12 月 6 日
コメント済み: sibabalo noludwwe 2019 年 7 月 23 日
I have a table (below) which I'm trying to convert into an adjacency matrix in matlab so I can conduct a network analysis.
Are there any packages available for this? Or is there a better format for the matrix to be in for conversion?
Thanks

採用された回答

Steven Lord
Steven Lord 2018 年 12 月 6 日
If these are fuel costs that you want to use to minimize expenses given that each of the industries / applications on the left side require a certain amount of fuel and given other constraints, I'm not sure that a network graph is the best tool for this application. I'd read this into a matrix or a table (the latter using readtable) and then use some of the functions from Optimization Toolbox to perform that optimization.
If you really need or want to create a graph or digraph from this data, you're going to need to make a square adjacency matrix. Use readtable as I mentioned above or the tools listed on this documentation page for the type of file in which this data is stored to read it into a matrix or table, make a square matrix (probably by padding with zeros), then build and analyze your graph or digraph.
  2 件のコメント
Ciaran Raymer
Ciaran Raymer 2018 年 12 月 11 日
I'll give it a shot, thanks!
sibabalo noludwwe
sibabalo noludwwe 2019 年 7 月 23 日
i have a question similar to this, I have an IEEE physical network in simulink and I want to create an adjacent matrix for it so i can get minimum spanning tree

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by