I wish to extract the SITEMAP associated with a website (the hierarchy from the links between webpages of the identical site).

How do i do that?

You have to write an internet crawler: check this out link Writing an internet crawler in c#