Kurosawa said a major source for Yojimbo's plot was The Glass Key, through its 1942 film: a man who plays two crooked factions of a town against each other.
Book· 1931· Crime
The Glass Key: 2 recorded works trace back to it.
Works that record this one as a source, with the evidence a contributor gave.