Is your network a polytree?