Kliknutím na Union-find on wikipedia otevřete zdroj.