> 
> **Possible Duplicate:**  
> 
> [Graph visualization code in javascript?](https://stackoverflow.com/questions/7034/graph-visualization-code-in-javascript) 
> 
> 
> 

I have to integrate a graph with nodes and edges on a web page. Ideally, i would like to be able to interact with it (like moving the nodes around).

Actually, i'm beginning by representing trees, so i would appreciate to be able to collapse subtrees.

How can I do that ? I was considering google-visualization api but i wasn't able to find the kind of visualization i'm looking for (org chart doesn't allow to have multiple fathers, if i understood well)

I've got no idea of the kind of technology so my tagging may not be really accurate :-).

thanks