inc2adj(mInc)

版本 1.6.0.0 (2.2 KB) 作者: Ondrej
Conversion from graph incidence matrix to adjacency matrix.
1.1K 次下载
更新时间 2016/2/25

查看许可证

Returns a sparse adjacency matrix 'mAdj' according to the incidence matrix 'mInc'. The rows in the incidence matrix must represent the edges, while the columns the vertices.
Function can handle directed graphs with incidence matrix containing -1s, indicating an "in-going" edge, and 1s indicating an "out-going" edge.

引用格式

Ondrej (2024). inc2adj(mInc) (https://www.mathworks.com/matlabcentral/fileexchange/30862-inc2adj-minc), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Directed Graphs 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.6.0.0

checks for correct input added (Thanks to Kaif Agbaje)

1.5.0.0

input consistency check modified

1.4.0.0

handled case when the input matrix is zero

1.3.0.0

Major code optimization (Thanks to Andreas Gunnel for inspiration)

1.1.0.0

faster check of the input matrix

1.0.0.0