If you want to embed an image of a graph, check out the JFreeReport library for creating chart images, and the cewolf tag library for embedding them in web pages (both on SourceForge).
If it's actually graph as in "graph theory" that you're looking for, have a look at JGraph (also on SourceForge).