Attempts in teaching stuff. Sorry if i ramble at the end, i just found out that the source that i used as a reference is rather folly.
Also, i forgot to explain that parallel edges must be removed. (Like ones that has source = dest. Two edges with the same source and dest are prohibited). You can remove this by just simply using linear searching or any other searching method you can think of.