%% Test for Multiple Edges
% Use ismultigraph to determine whether an input graph has multiple edges between two nodes.
%
% Create a graph.

G = graph([1 1 1 1 1 2 2 2],[2 2 3 4 5 6 7 8]);
plot(G)

%
% Check to see if G is a multigraph. The result is logical 1 (true) because there are two edges between nodes 1 and 2.

tf = ismultigraph(G)

%
% Copyright 2012 The MathWorks, Inc.