%% End Nodes of All Graph Edges
% Create a graph, and then determine the end nodes of all edges in the graph.

s = {'a' 'a' 'b' 'b' 'c' 'c'};
t = {'b' 'c' 'd' 'e' 'f' 'g'};
G = graph(s,t);
G.Edges

%

[sOut,tOut] = findedge(G)

% Copyright 2015 The MathWorks, Inc.