findedge
Locate edge in graph
Syntax
Description
returns the numeric edge indices,idxOut
= findedge(G
,s,t
)idxOut
, for the edges specified by the source and target node pairss
andt
. The edge indices correspond to the rowsG.Edges.Edge(idxOut,:)
in theG.Edges
table of the graph. If there are multiple edges betweens
andt
, then all their indices are returned. An edge index of0
indicates an edge that is not in the graph.