Object parent = graph.getDefaultParent();
Object[] vertices = new Object[10];
for (int i = 0; i < 10; i++)
{
vertices[i] = graph.insertVertex(parent, null, new Integer(i).toString(), 0, 0, 25, 25);
}
graph.insertEdge(parent, null, getNewEdgeValue(aGraph), vertices[0], vertices[2]);
graph.insertEdge(parent, null, getNewEdgeValue(aGraph), vertices[0], vertices[8]);
graph.insertEdge(parent, null, getNewEdgeValue(aGraph), vertices[0], vertices[9]);