Home

Selforganizology, 2020, 7(3-4): 8-14
[XML] [EndNote] [RefManager] [BibTex] [ Full PDF (750K)] [Comment/Review Article]

Article

Matlab algorithm to generate adjacency matrix from connection pairs that nodes are represented by strings

WenJun Zhang1, Yanhong Qi2
1School of Life Sciences, Sun Yat-sen University, Guangzhou 510275, China; International Academy of Ecology and Environmental Sciences, Hong Kong
2Libraries of Sun Yat-sen University, Sun Yat-sen University, Guangzhou, China

Received 12 November 2019;Accepted 18 December 2019;Published 1 December 2020
IAEES

Abstract
It is harder to generate an adjacency matrix from connection (i.e., link) pairs that nodes are represented by strings than by numerical ID numbers. In present article, we developed a Matlab algorithm to generate adjacency matrix from connection pairs in which nodes are represented by strings. Full codes and executable program of the algorithm were given.

Keywords Matlab algorithm;connection pairs;connection weights;adjacency matrix;transformation.



International Academy of Ecology and Environmental Sciences. E-mail: office@iaees.org
Copyright © 2009-2024 International Academy of Ecology and Environmental Sciences. All rights reserved.
Web administrator: office@iaees.org, website@iaees.org; Last modified: 2024/4/19


Translate page to: