How to create an adjacency matrix with a hexagonal structure
5 ビュー (過去 30 日間)
古いコメントを表示
I have a cluster of nodes constructed as a mesh of angled hexagons. How do I create the adjacency matrix from this structure where each hexagon acts as a node?
0 件のコメント
回答 (1 件)
BhaTTa
2024 年 11 月 20 日 5:36
編集済み: BhaTTa
2024 年 11 月 20 日 5:37
Hey @ally, first you have to number each of the hexagonal nodes, then see which all nodes are directly connected to the given numbered node and then make use of adjacency matrix or adjacency list that you have created to represent the graph to mark edge between the nodes.
Please refer to this answer: https://www.mathworks.com/matlabcentral/answers/642930
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!