Check if a given directed graph is a tree or not