Exemplo n.º 1
0
 /**
  * Sets a new Layout for the graph.
  *
  * @param layout The Layout instance to use for the new Graph Layout.
  */
 public void setGraphLayout(Layout<V, E> layout) {
   super.setGraphLayout(layout);
   layout.initialize();
   this.graph = (UndirectedSparseGraph<V, E>) this.getGraphLayout().getGraph();
 }