Graph::Easy lets you generate graphs consisting of various shaped nodes connected by edges (with optional labels).