function n=mphgetadj(model, geomname, returntype, adjtype, adjnumber)
% MPHGETADJ Return geometry entity indices that are adjacent to other
% 
%   N = MPHGETADJ(MODEL,GEOMNAME,RETURNTYPE,ADJTYPE,ADJNUMBER) returns the
%   indices of the adjacent geometry entities.
% 
%   RETURNTYPE is the type of geometry entities whose index are returned.
%   ADJTYPE is the type of input geometry entity.
%   The entity type can be one of 'point', 'edge', 'boundary' or 'domain'. 
%   See the entry MPHGETADJ in the LiveLink for MATLAB User's Guide for 
%   more information about the entity type definition.
% 
%   Example :
%     % Load busbar.mph from the Model Library:
%     model = mphload('busbar.mph');
%     % Returns the indices of the domains adjacent to point 2:
%     n = mphgetadj(model, 'geom1', 'domain', 'point', 2);
%     % Returns the indices of the points adjacent to domains 2 and 3:
%     n = mphgetadj(model, 'geom1', 'point', 'domain', [2 3]);
% 
%   See also: mphgetcoords, mphselectbox, mphselectcoords

% Copyright 2010-2011 COMSOL
