Network tree generator