예제 #1
0
  public void run() {
    final EdgeData data = source.getValue();
    final int nodes = data.getSize();

    eigenMetric.eigensolve("V", nodes, data);

    VertexData result = new VertexData(nodes);

    for (int i = 0; i < nodes; i++) {
      result.set(i, eigenMetric.evResult[nodes + i]);
    }

    target.setValue(result);
  }
예제 #2
0
 public MetricVDataEigenGap() {
   eigenMetric.init(10);
 }