I'm new to graphs. Currently I know how to use DSU on undirected graphs but I have a question whether DSU can be used for directed graphs or not? And of course, if possible, please share the solution, as well as some places to practice this DSU part.
P/s: I'm just a newbie so I hope everyone can help. Thank you very much.