% BEGIN, main function (control)
function [link_mat,link_alist] = optimize_ldpc_web(
	     v_max,               % maximum variable node degree
	     c_max,               % maximum check node degree
	     target_rate,         % target_rate
	     channel,             % 'awgn' or 'bec'
	     N,                   % number of variable nodes
	     removefourcycles,    % 4-cycles in final matrix removed or not?
	     webdemo_en,          % if 0, the test-mode in command-line
	     inue_js_animationNumberOfFrames,
	     filename             % output file for webdemo
)
  addpath(genpath("source_code/"));
  [link_mat,link_alist] = optimize_ldpc(
	     v_max,               % maximum variable node degree
	     c_max,               % maximum check node degree
	     target_rate,         % target_rate
	     channel,             % 'awgn' or 'bec'
	     N,                   % number of variable nodes
	     removefourcycles,    % 4-cycles in final matrix removed or not?
	     webdemo_en,          % if 0, the test-mode in command-line
	     inue_js_animationNumberOfFrames,
	     filename             % output file for webdemo
);
end
