私はコミュニティの検出のための非常に簡単なコードを実行しようとしていますが、それはエラーを返します:タイプ不一致FLINKグラフコミュニティ
import org.apache.flink.graph.library.CommunityDetection
import org.apache.flink.graph._
import org.apache.flink.graph.scala.Graph
import java.lang.Long
import java.lang.Double
import org.apache.flink.api.scala._
val env = ExecutionEnvironment.getExecutionEnvironment
val vertices = Seq(new Vertex[Long, String](1L, "foo"), new Vertex[Long, String](2L, "bar"))
val edges = Seq(new Edge[Long, String](1L, 2L, "foobar"))
val graph = Graph.fromCollection(vertices, edges, env)
val updatedGraph = graph.mapVertices(v => v.getValue + 1)
val resultGraph = graph.run(new CommunityDetection[Long](30, 0.5))
^
エラー:(30、33)のミスマッチを入力し、 が見つかりました:org.apache.flink.graph.library.CommunityDetection [Long] 必須:org.apache.flink.graph.GraphAlgorithm [Long、String、String ,?] val resultGraph = graph.run(新しいCommunityDetection [Long ](30、0.5)) –