Graph adjacency matrix to incidence matrix

버전 1.11.0.0 (2.05 KB) 작성자: Ondrej
Conversion from graph adjacency matrix to incidence matrix.
다운로드 수: 2.7K
업데이트 날짜: 2011/7/6

라이선스 보기

Returns a sparse incidence matrix 'mInc' according to the adjacency matrix 'mAdj'. The edge ordering in the incidence matrix is according to the order of adjacent edges of vertices starting from the 1st vertex, i.e. first edges coincide with first vertex, next edges coincide with second vertex, etc.
If the graph is directed, the incidence matrix mInc contains -1s, indicating an "in-going" edge, and 1s indicating an "out-going" edge.
If the graph is undirected, the incidence matrix mInc contains only 1s.

인용 양식

Ondrej (2025). Graph adjacency matrix to incidence matrix (https://kr.mathworks.com/matlabcentral/fileexchange/24661-graph-adjacency-matrix-to-incidence-matrix), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Undirected Graphs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.11.0.0

new optional parameter: adj2inc(A,0)= directed, graph,adj2inc(A,1) = undirected graph

1.10.0.0

function renamed to adj2inc() + speed-up

1.6.0.0

faster check for matrix symmetry (minor speed-up)

1.5.0.0

warning identifier added + minor comments

1.4.0.0

Self-loops check added (Thanks to Wolfgang Schwanghart)

1.2.0.0

Major speed-up update thanks to Wolfgang Schwanghart

1.1.0.0

Error handling added + new comments

1.0.0.0