Margaret of Bohemia, Duchess of Bavaria
Margaret of Bohemia( 1313–1341) was the daughter of King John of Bohemia by his first wife Elisabeth of Bohemia( 1292–1330).
Wenceslaus II of Bohemia
Wenceslaus II Přemyslid( 27 September 1271 – 21 June 1305) was King of Bohemia( 1278 – 1305), Duke of Cracow( 1291 – 1305), and King of Poland( 1300 – 1305).
He was the only son of King Ottokar II of Bohemia and Ottokar's second wife Kunigunda.
He was born in 1271, ten years after the marriage of his parents.
Kunigunda was the daughter of Rostislav Mikhailovich, lord of Slavonia, son of a Grand Prince of Kiev, and Anna of Hungary, daughter of Béla IV of Hungary.
His great- grandfather was the German king Philip of Swabia.
Wenceslaus II was the grandfather of the Holy Roman Emperor, Charles IV.
He was a member of the Přemyslid dynasty.
Charles IV, Holy Roman Emperor
Charles IV (14 May 1316 – 29 November 1378), born Wenceslaus, was the first King of Bohemia to become Holy Roman Emperor.
He was a member of the House of Luxembourg from his father's side and the Czech House of Přemyslid from his mother's side; he emphasized the latter due to his lifelong affinity for the Czech side of his inheritance, and also because his direct ancestors in the Přemyslid line included two saints.
He was the eldest son and heir of King John of Bohemia, who died at the Battle of Crécy on 26 August 1346.
His mother, Elizabeth of Bohemia, was the sister of King Wenceslas III, the last of the male Přemyslid rulers of Bohemia.
Charles inherited the County of Luxembourg from his father and was elected king of the Kingdom of Bohemia.
On 2 September 1347, Charles was crowned King of Bohemia.
On 11 July 1346, the prince-electors chose him as King of the Romans ("rex Romanorum") in opposition to Emperor Louis IV.
Charles was crowned on 26 November 1346 in Bonn.
After his opponent died, he was re-elected in 1349 and crowned King of the Romans.
In 1355, he was crowned King of Italy and Holy Roman Emperor.
With his coronation as King of Burgundy in 1365, he became the personal ruler of all the kingdoms of the Holy Roman Empire.
Anne of Bohemia (1290–1313)
Anne of Bohemia( 1290 –1313) was the eldest surviving daughter of Wenceslaus II of Bohemia and Poland and his first wife Judith of Habsburg.
Her siblings included Elisabeth of Bohemia and Wenceslaus III of Bohemia.
Margaret of France, Queen of England and Hungary
Margaret of France( 1158 – 18 September 1197) was queen of England by marriage to Henry the Young King, and queen of Hungary and Croatia by marriage to Béla III of Hungary.
Yolanda of Poland
Yolanda of Poland( also known as Helen; 1235 – 11 June 1298) was the daughter of King Béla IV of Hungary and Maria Laskarina.
She was the sister of Margaret of Hungary and Kinga of Poland( Cunegunda).
One of her paternal aunts was the Franciscan Elizabeth of Hungary.
Elizabeth of Hungary, Duchess of Bohemia
Elizabeth of Hungary( 1145- 1189), was a Duchess consort of Bohemia, married to Frederick, Duke of Bohemia.
Her parents were King Géza II of Hungary and Euphrosyne of Kiev.
She served as regent of Bohemia twice in the absence of her spouse.
Wilhelmine Amalia of Brunswick-Lüneburg
Wilhelmine Amalia of Brunswick- Lüneburg( 21 April 1673 – 10 April 1742) was Holy Roman Empress, Queen of the Germans, Queen of Hungary, Queen of Bohemia, Archduchess consort of Austria etc. as the spouse of Joseph I, Holy Roman Emperor.
Margaret of Bohemia, Duchess of Wroclaw
Margaret of Bohemia( 21 February 1296 – 8 April 1322) was a daughter of Wenceslaus II of Bohemia and his first wife, Judith of Habsburg.
Margaret of Bohemia, Queen of Hungary
Margaret of Bohemia (24 May 1335 – 1349, before October), also known as Margaret of Luxembourg, was a Queen consort of Hungary by her marriage to Louis I of Hungary.
She was the second child of Charles IV, Holy Roman Emperor by his first wife Blanche of Valois.
She was a member of the House of Luxembourg.

Question: Who is the paternal grandfather of Margaret Of Bohemia, Queen Of Hungary?