I am using the subfigure environment, but when I refer to it, the counter is either not showing or showing incorrectly.
Here is the code.
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{float}
\usepackage{algorithm2e}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{setspace}
\usepackage{cleveref}
\captionsetup[subfigure]{subrefformat=simple,labelformat=simple}
\renewcommand\thesubfigure{(\alph{subfigure})}
\begin{figure}[H]
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.8\linewidth]{g/iso-perm-vs-objective-4-vert.png}
\label{fig:iso-perm-vs-objective-4-vert}
\caption{Isomorphic}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.8\linewidth]{g/non-iso-perm-vs-objective-4-vert.png}
\label{fig:non-iso-perm-vs-objective-4-vert}
\caption{Non-isomorphic}
\end{subfigure}
\caption{{\it Permutation terms} vs. complete $f$}
\label{fig:four-vert-perm-vs-f-landscape}
\end{figure}
Figure ~\ref{fig:four-vert-perm-vs-f-landscape} \subref{fig:non-iso-perm-vs-objective-4-vert} and Figure ~\ref{fig:four-vert-perm-vs-f-landscape} \subref{fig:iso-perm-vs-objective-4-vert}.
The output is shown below.

