Finding neighbours of links in a graph
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
For a graph as shown below, how can I list the immediate neighbours as well as neighbours of neighbours of a link
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1192353/image.png)
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
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Graph and Network Algorithms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!