How to check if there is an edge between two nodes in an undirected graph?
Mostra commenti meno recenti
How can I check if any two nodes in an undirected graph are connected via an edge or not, please? in other words, Are they neighbors or not? Thanks!
Risposta accettata
Più risposte (1)
Pratibha Chaudhary
il 9 Nov 2022
0 voti
findedge(g, node1, node2).
Categorie
Scopri di più su Undirected Graphs in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!