Mathematical analysis of nonlocal PDEs for network generation