%% Locate Edges with Specified Edge Indices
% Create a graph, and then determine the end nodes for the edges whose indices are 3 and 7.

s = [1 1 1 1 2 2 3 3 4 4];
t = [2 3 4 5 6 7 8 9 10 11];
G = digraph(s,t)

%

[sOut,tOut] = findedge(G,[3 7])

% Copyright 2015 The MathWorks, Inc.