Name files correctly for undirected

! Detected bug for directed. need to open ticket.