I have created the following graph using the tikzpicture environment:

using the following MWE:
%Begin with any document class:
\documentclass{standalone}
%Load the tkz-graph package:
\usepackage{tkz-graph}
%Begin the document:
\begin{document}
%Start a tikzpicture environment:
\begin{tikzpicture}
%[options](node ID) at (position) {Label}
\node[shape=circle, draw=black, line width=2](FD) at (0,0) {FD};
\node[shape=circle, draw=blue, line width=2](TD) at (0,-3.5) {TD};
\draw [->] (FD) to (TD);
\node[shape=circle, draw=blue, line width=2](ND) at (2,-3) {ND};
\draw [->] (FD) to (ND);
\node[shape=circle, draw=blue, line width=2](RUD) at (-2,-3) {RUD};
\draw [->] (FD) to (RUD);
\node[shape=circle, draw=blue, line width=2](OD) at (-4,-3) {OD};
\draw [->] (FD) to (OD);
\node[shape=circle, draw=green, line width=2](ODEA) at (-2.5,-5.5) {$OD_{EA}$};
\draw [->] (OD) to (ODEA);
\node[shape=circle, draw=blue, line width=2](ODK) at (-4,-7) {$OD_{K}$};
\draw [->] (OD) to (ODK);
\node[shape=circle, draw=blue, line width=2](POD) at (-5.5,-5.5) {POD};
\draw [->] (OD) to (POD);
\node[shape=circle, draw=blue, line width=2](OFD) at (-7,-5) {OFD};
\draw [->] (OD) to (OFD);
\node[shape=circle, draw=blue, line width=2](preFD) at (-9,-5) {preFD};
\draw [->] (OFD) to (preFD);
\node[shape=circle, draw=blue, line width=2](SD) at (-7,-3) {SD};
\draw [->] (OD) to (SD);
\node[shape=circle, draw=green, line width=2](CSD) at (-9,-3) {CSD};
\draw [->] (SD) to (CSD);
\node[shape=circle, draw=green, line width=2](PAC) at (-4,-1) {PAC};
\draw [->] (FD) to (PAC);
\node[shape=circle, draw=blue, line width=2](NuD) at (-7,0) {NuD};
\draw [->] (FD) to (NuD);
\node[shape=circle, draw=blue, line width=2](FFD) at (4,-3) {FFD};
\draw [->] (FD) to (FFD);
\node[shape=circle, draw=blue, line width=2](TMFD) at (4,-5) {TMFD};
\draw [->] (FFD) to (TMFD);
\node[shape=circle, draw=blue, line width=2](SFD) at (7,-5) {SFD};
\draw [->] (FFD) to (SFD);
\node[shape=circle, draw=blue, line width=2](MD) at (5,-2) {MD};
\draw [->] (FD) to (MD);
\node[shape=circle, draw=green, line width=2](CMD) at (7,-3.5) {CMD};
\draw [->] (MD) to (CMD);
\node[shape=circle, draw=blue, line width=2](CoD) at (7,-2) {CoD};
\draw [->] (MD) to (CoD);
\node[shape=circle, draw=green, line width=2](ACoD) at (9,-2) {ACoD};
\draw [->] (CoD) to (ACoD);
\node[shape=circle, draw=blue, line width=2](MFD) at (5,0) {MFD};
\draw [->] (FD) to (MFD);
\draw [->] (MFD) to (CoD);
\node[shape=circle, draw=blue, line width=2](DD) at (7,0) {DD};
\draw [->] (MFD) to (DD);
\node[shape=circle, draw=green, line width=2](ADD) at (9,0) {ADD};
\draw [->] (DD) to (ADD);
\node[shape=circle, draw=green, line width=2](A0XFD) at (-4,1.5) {$\alpha0XFD$};
\draw [->] (FD) to (A0XFD);
\node[shape=circle, draw=red, line width=2](XCFD) at (-4.5,3.5) {XCFD};
\draw [->] (FD) to (XCFD);
\node[shape=circle, draw=green, line width=2](CFDC) at (-7,5) {$CFD^C$};
\draw [->] (NuD) to (CFDC);
\node[shape=circle, draw=red, line width=2](CFD) at (-3,5) {CFD};
\draw [->] (CFD) to (CFDC);
\draw [->] (FD) to (CFD);
\node[shape=circle, draw=red, line width=2](CFDP) at (-5,7) {$CFD^P$};
\draw [->] (CFD) to (CFDP);
\node[shape=circle, draw=red, line width=2](ECFD) at (-3,7) {eCFD};
\draw [->] (CFD) to (ECFD);
\node[shape=circle, draw=red, line width=2](CD) at (-1,5) {CD};
\draw [->] (FD) to (CD);
\node[shape=circle, draw=red, line width=2](PD) at (1,5) {PD};
\draw [->] (FD) to (PD);
\node[shape=circle, draw=red, line width=2](softFD) at (3,5) {softFD};
\draw [->] (FD) to (softFD);
\node[shape=circle, draw=red, line width=2](pFD) at (2,7) {pFD};
\draw [->] (PD) to (pFD);
\draw [->] (softFD) to (pFD);
\node[shape=circle, draw=red, line width=2](PuD) at (4.5,3.5) {PuD};
\draw [->] (FD) to (PuD);
\node[shape=circle, draw=red, line width=2](AFD) at (4,1.5) {AFD};
\draw [->] (FD) to (AFD);
\end{tikzpicture}
\end{document}
How can I create a legend like this:
and put it in top-right corner?

\matrix [draw,below left, row sep=3mm, nodes={font=\huge}]. Change therow sepvalue and\hugeto whatever font size command you prefer. – Torbjørn T. Nov 06 '19 at 17:09