void createEdges(String[] v){
  graph.addEdge(new Double(Math.random()),v[0],v[1],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[0],v[3],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[0],v[4],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[4],v[5],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[3],v[5],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[1],v[2],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[1],v[4],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[8],v[2],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[3],v[8],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[6],v[7],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[7],v[5],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[0],v[9],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[9],v[8],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[7],v[6],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[6],v[5],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[4],v[2],EdgeType.DIRECTED);
  graph.addEdge(new Double(Math.random()),v[5],v[4],EdgeType.DIRECTED);
}

void createEdges ( String [ ] v ) { graph . addEdge ( new Double ( Math . random ( ) ) , v [ 0 ] , v [ 1 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 0 ] , v [ 3 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 0 ] , v [ 4 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 4 ] , v [ 5 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 3 ] , v [ 5 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 1 ] , v [ 2 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 1 ] , v [ 4 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 8 ] , v [ 2 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 3 ] , v [ 8 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 6 ] , v [ 7 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 7 ] , v [ 5 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 0 ] , v [ 9 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 9 ] , v [ 8 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 7 ] , v [ 6 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 6 ] , v [ 5 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 4 ] , v [ 2 ] , EdgeType . DIRECTED ) ; graph . addEdge ( new Double ( Math . random ( ) ) , v [ 5 ] , v [ 4 ] , EdgeType . DIRECTED ) ; }
create edges for this demo graph
