View Javadoc
1   /*
2    * Copyright (c) 2003, The JUNG Authors 
3    *
4    * All rights reserved.
5    *
6    * This software is open-source under the BSD license; see either
7    * "license.txt" or
8    * https://github.com/jrtom/jung/blob/master/LICENSE for a description.
9    */
10  package edu.uci.ics.jung.algorithms.generators;
11  
12  
13  
14  /**
15   * An interface for algorithms that generate graphs that evolve iteratively.
16   * @author Scott White
17   */
18  public interface EvolvingGraphGenerator<V, E> extends GraphGenerator<V,E> {
19  
20      /**
21       * Instructs the algorithm to evolve the graph N steps.
22       * @param numSteps number of steps to iterate from the current state
23       */
24      void evolveGraph(int numSteps);
25  
26      /**
27       * Retrieves the total number of steps elapsed.
28       * @return number of elapsed steps
29       */
30      int numIterations();
31  }