I'm reading the definition of subnet from here, i.e.,
Let $E$ be a non-empty set and $(x_d)_{d\in D}$ a net in $E$. Let $(y_t)_{t\in T}$ be another net in $E$. Then $(y_t)_{t\in T}$ is called a subnet of $(x_d)_{d\in D}$ if and only if there is a function $\varphi:T \to D$ such that
$y_t = x_{\varphi (t)}$ for all $t$.
$h$ is monotonic, i.e., $\varphi (t_1) \le \varphi (t_2)$ if $t_1 \le t_2$.
$\operatorname{im} \varphi$ is cofinal in $D$, i.e., $\forall d\in D, \exists t\in T: d \le\varphi (t)$.
I realized that this definition of subnet is equivalent to
$(y_t)_{t\in T}$ is a subnet of $(x_d)_{d\in D}$ if and only if
$T$ is cofinal in $D$, i.e., $\forall d\in D, \exists t\in T: d \le t$.
$x_t = y_t$.
Let $t_1, t_2 \in T$. Then $t_1, t_2 \in D$. There is $d \in D$ such that $t_1 \le d$ and $t_2 \le d$. Because $T$ is cofinal in $D$, there is $t_3 \in T$ such that $d \le t_3$. This implies $t_1 \le t_3$ and $t_2 \le t_3$. Hence $T$ is indeed a directed set. To get the first construction, we set the canonical injection from $T$ to $D$ as $\varphi$.
It follows that $(x_d)_{d\in T}$ is a subnet of $(x_d)_{d\in D}$ if and only if $T$ is cofinal in $D$. Could you verify if my understanding is correct?