https://alandroidnet.com/related/graph theory problems