%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Please do not change the following statements. You must start from line 43 "==>start from here"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt, reqno]{amsart}
\usepackage{amsmath, amsthm, amscd, amsfonts, amssymb, graphicx, color}
\usepackage[bookmarksnumbered, colorlinks, plainpages]{hyperref}
%\usepackage{algorithm2e}
%\usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry}
\usepackage{float}
%\usepackage{xspace}
\usepackage{algorithm}
\usepackage{algorithmic}
\renewcommand\labelenumii{\theenumi.\arabic{enumii}.}
%\usepackage[noend]{algpseudocode}
%\usepackage[ruled,vlined]{algorithm2e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If you want to insert other packages. Insert them here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\makeatletter \oddsidemargin.9375in \evensidemargin \oddsidemargin
\marginparwidth1.9375in \makeatother

\def\affilfont{\normalfont\fontsize{10}{12}\selectfont\centering}
\def\affil#1{\par\vskip12pt{\affilfont#1\par}\vskip15pt}
\def\Speaker{$^{*}$\protect\footnotetext{$^{*}$ S\lowercase{peaker.}}}
\def\authorsaddresses#1{\dedicatory{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{xca}[theorem]{Exercise}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\numberwithin{equation}{section}
\makeatletter
\def\BState{\STATE\hskip-\ALG@thistlm}
\makeatother
\begin{document}
\setcounter{page}{1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Please do not remove the following statement.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{algorithm}
\caption{  \label{algor2}$(d, f)- $ extended coloring of  fuzzy graph}
\vspace{0.5cm}
Input: adjacency matrix of fuzzy graph ($ A $), the dissimilarity measure ($ di $), the number of vertices of fuzzy graph ($ n $), scale function ($ ro $).
\begin{enumerate}
\item Consider the color  of all edges $ -1 $  edge $ index  $ coloring start  and The color of choice $  c \leftarrow 1$ for Coloring $ index$ edge to consider.
\item According the $ index $ of edge, start and end vertices $ [ver1,ver2] $ are determined.
\item If the vertex $ ver1 = 0 $, i.e all edges of  graph colored, go to step 5.
\item While $ 1> $ 0 do:
\begin{enumerate}
\item Consider the vertex  $ i \leftarrow 1 $.
\item  While $ i \leq n $ 0 do:
\begin{enumerate}
\item If the color $ c $ is greater than  maximum available the color, go to step 3.4.
\item If  $ ver2 $  of vertex lso edge
$ ecolor (ver1, i) $ is colored.
Ifcolored.
If the  color $ c $ in  formula \eqref {f11} is not satisfied,  not suitable the  $ c $ of color for coloring and select $  c \leftarrow  c+1$ of color  for coloring , then $ i \ leftarrow 1 $ and  re-run 2.4  stage first the first. 
\item select $ i \leftarrow i+1$ of vertex and  re-run 2.4  stage first the first. 
\end{enumerate}
\item If $ c $ of color is positive, considered $ c $ of color
 as the color edges $ ecolor (ver1, ver2) $ and $ ecolor (ver2, ver1) $, then considered   $ c  \leftarrow  1$ and go to step 9.4.
\item If arrived to the $ index = 1 $ of edge, go to step 5.
\item select $ index \leftarrow index-1 $ of edge.
\item  While $ index >1 $ and  color of $ ecolor(ver1,ver2) $ of edge  is greater than  maximum available the color, select $ index \leftarrow index-1 $ of edge.
\item $ c \leftarrow ecolor(ver1,ver2)+1 $ of color assignment to edges   $ ecolor(ver1,ver2)  $ and  $ ecolor(ver2,ver1)  $, go to step 3.
\item If arrived to th 5.
\item  choose  step 3.
\item If arrived to th 5.
\item  choose  step 3.
\item If arrived to th 5.
\item  choose  step 3.
\item If arrived to th 5.
\item  choose  step 3.
\item If arrived to th 5.
\item  choose  step 3.
\end{enumerate}
\item If there is no edge is possible.
\item If arrived to th 5.
\item  choose  step 3.
\item If arrived to th 5.
\item  choose  step 3.
\item If arrived to th 5.
\item  choose  step 3.
\item If arrived to th 5.

 \end{enumerate} 
\end{algorithm}

\end{document}
