%% Highlight Biconnected Components
% Create and plot a graph. Color the edges based on which biconnected component each edge belongs to.

s = [1 1 2 2 3 4 4 5 6 6 7 7 8];
t = [2 3 3 4 4 5 7 6 7 10 8 9 9];
G = graph(s,t);
p = plot(G,'LineWidth',2);

%

p.EdgeCData =  biconncomp(G);

% Copyright 2012 The MathWorks, Inc.