How to check if there is an edge between two nodes in an undirected graph?
24 views (last 30 days)
Christine Tobler on 20 May 2022
Call findedge(g, node1, node2). If there is no edge connecting these nodes, the output is zero. Otherwise, the output is the index into the Edges table of the connecting edge.