I've seen this episode many times and I believe the basis for the plot here it is at least in part based on the movie The Enemy below. Specifically the way the Enterprise pursues the Romulan ship as well as the Romulan characters. The captain, what appears to be his older executive officer and the way they act toward the prospect of War. Also the scene where Spock accidentally hits a button cause an interruption in their Silent Running. It was that type of scene in the original movie The Enemy below. Even the ending where the Romulan Commander self-destructs his ship just like the movie. Of course in the movie The American captain takes aboard the German Commander where as in Star Trek the Romulan Commander is killed.