image thumbnail

inc2adj(mInc)

version 1.6.0.0 (2.2 KB) by Ondrej
Conversion from graph incidence matrix to adjacency matrix.

1.1K Downloads

Updated 25 Feb 2016

View License

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.

Cite As

Ondrej (2021). inc2adj(mInc) (https://www.mathworks.com/matlabcentral/fileexchange/30862-inc2adj-minc), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!