%% Incoming Edges of Selected Node
% Create a multigraph with three nodes and four edges. Find the incoming edges of node 3.

G = digraph([1 1 1 2],[2 2 3 3]);
G.Edges

%

eid = inedges(G,3)

%

G.Edges(eid,:)

% Copyright 2012 The MathWorks, Inc.