Github user spmallette commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/772#discussion_r160840279
--- Diff:
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/clustering/peerpressure/PeerPressureVertexProgram.java
---
@@ -81,7 +81,11 @@ private PeerPressureVertexProgram() {
}
@Override
- public void loadState(final Graph graph, final Configuration
configuration) {
+ public void loadState(final Configuration configuration, final
Graph... graphs) {
+ if (graphs.length != 1) {
+ throw new IllegalStateException("Must provide one graph to
use, received " + graphs.length);
+ }
+ Graph graph = graphs[0];
--- End diff --
Our style is to `final` all variables that can be marked as such - it seems
like this one could be.
---