the film is partially based on the novel of the same name by alexandre dumas