How to create an adjacency matrix with a hexagonal structure

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?
grid hex angled

답변 (1개)

BhaTTa
BhaTTa 2024년 11월 20일
편집: BhaTTa 2024년 11월 20일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 3월 3일

편집:

2024년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by