Finding neighbours of links in a graph

조회 수: 2 (최근 30일)
Hari
Hari 2022년 11월 14일
답변: Matt J 2022년 11월 14일
For a graph as shown below, how can I list the immediate neighbours as well as neighbours of neighbours of a link
For example, for the link 1-2, the immediate neighbours are 1-3,3-1,2-6,6-2
neighbours of neighbours are 3-4,4-3,3-12,12-3,6-8,8-6,6-5,5-6

답변 (1개)

Matt J
Matt J 2022년 11월 14일

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by