I'm referring to Wilhelm II, Nicholas II, and George V, who ruled the empires of Germany, Russia, and Britain, respectively.
Dynastic trees and the politics behind them have always messed with me. Thanks in advance for any help.
Royalty generally married into other royal lines, and with marriage came inheritances of both lands and titles from both sides of royal lineages, so that the King of England (for instance) can also be the Duke of Normandy. The family tree on this site gives a breakdown of the familial relations between the three dynasties.
There's a really good book called George, Nicholas, and Wilhelm: Three Cousins that talks about their relationships, the politics of the time, and how WWI happened between their countries.