%% Determine Connecting Points in 2-D Triangulation
% Load a 2-D triangulation.

load trimesh2d
TR = triangulation(tri,x,y);

%
% Determine whether vertices 3 and 117 are connected by an edge.

TF = isConnected(TR,3,117)

%
% Determine whether vertices 3 and 164 are connected by an edge.

TF = isConnected(TR,3,164)

% Copyright 2012 The MathWorks, Inc.