Interactive Graphs with Dynamic Link Updates for Websites

I am trying to add Interactive graph to a website like docs.obsidian.md/Reference/

When I click on a link, the graph also changes.

I am not understanding how it is done.

Is there a way to generate a site from vault or something.

I would like to have this exact feature on a website.