Skip to content

Instantly share code, notes, and snippets.

View idiegoo's full-sized avatar
:electron:

Diego idiegoo

:electron:
View GitHub Profile
@idiegoo
idiegoo / cicleAfter.tex
Created October 27, 2025 21:00
cicleAfter de clase 18 de EDD
\begin{algorithmic}[1]
\Require Grafo $G$, nodo $X \in V(G)$
\Function{cycleAfter}{$G, X$}
\If{$X.color = \text{gris}$}
\State \Return \True
\EndIf
\If{$X.color = \text{negro}$}
\State \Return \False
\EndIf
\State $X.color \gets \text{gris}$