historical problem: 7 Bridges of Königsberg