From: <tho...@us...> - 2014-02-23 00:21:35
|
Revision: 7875 http://sourceforge.net/p/bigdata/code/7875 Author: thompsonbry Date: 2014-02-23 00:21:30 +0000 (Sun, 23 Feb 2014) Log Message: ----------- Adjusted the fence post for maxIterations such that a value of ONE causes the algorithm to halt after the first round. Updated the documentation to match. Modified Paths: -------------- branches/RDR/bigdata-gas/src/java/com/bigdata/rdf/graph/IGASContext.java branches/RDR/bigdata-gas/src/java/com/bigdata/rdf/graph/impl/GASContext.java Modified: branches/RDR/bigdata-gas/src/java/com/bigdata/rdf/graph/IGASContext.java =================================================================== --- branches/RDR/bigdata-gas/src/java/com/bigdata/rdf/graph/IGASContext.java 2014-02-23 00:18:40 UTC (rev 7874) +++ branches/RDR/bigdata-gas/src/java/com/bigdata/rdf/graph/IGASContext.java 2014-02-23 00:21:30 UTC (rev 7875) @@ -55,7 +55,8 @@ IGraphAccessor getGraphAccessor(); /** - * Specify the maximum number of iterations for the algorithm. + * Specify the maximum number of iterations for the algorithm. A value of + * ONE means that the algorithm will halt after the first round. * * @param newValue * The maximum number of iterations. Modified: branches/RDR/bigdata-gas/src/java/com/bigdata/rdf/graph/impl/GASContext.java =================================================================== --- branches/RDR/bigdata-gas/src/java/com/bigdata/rdf/graph/impl/GASContext.java 2014-02-23 00:18:40 UTC (rev 7874) +++ branches/RDR/bigdata-gas/src/java/com/bigdata/rdf/graph/impl/GASContext.java 2014-02-23 00:21:30 UTC (rev 7875) @@ -137,7 +137,7 @@ * GASStats. */ - if (total.getNRounds() >= getMaxIterations()) { + if (total.getNRounds() + 1 >= getMaxIterations()) { log.warn("Halting: maxIterations=" + getMaxIterations() + ", #rounds=" + total.getNRounds()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |