Initial opendaylight infrastructure commit!!
[controller.git] / third-party / net.sf.jung2 / src / main / java / edu / uci / ics / jung / algorithms / generators / EvolvingGraphGenerator.java
diff --git a/third-party/net.sf.jung2/src/main/java/edu/uci/ics/jung/algorithms/generators/EvolvingGraphGenerator.java b/third-party/net.sf.jung2/src/main/java/edu/uci/ics/jung/algorithms/generators/EvolvingGraphGenerator.java
new file mode 100644 (file)
index 0000000..d351f9b
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003, the JUNG Project and the Regents of the University 
+ * of California
+ * All rights reserved.
+ *
+ * This software is open-source under the BSD license; see either
+ * "license.txt" or
+ * http://jung.sourceforge.net/license.txt for a description.
+ */
+package edu.uci.ics.jung.algorithms.generators;
+
+
+
+/**
+ * An interface for algorithms that generate graphs that evolve iteratively.
+ * @author Scott White
+ */
+public interface EvolvingGraphGenerator<V, E> extends GraphGenerator<V,E> {
+
+    /**
+     * Instructs the algorithm to evolve the graph N steps.
+     * @param numSteps number of steps to iterate from the current state
+     */
+    void evolveGraph(int numSteps);
+
+    /**
+     * Retrieves the total number of steps elapsed.
+     * @return number of elapsed steps
+     */
+    int numIterations();
+}