Test edge filtering in subgraph (test fails)

This commit is contained in:
Ankur Dave 2013-11-26 15:58:55 -08:00
parent 137294e2ab
commit 9e896be375

View file

@ -139,6 +139,7 @@ class GraphSuite extends FunSuite with LocalSparkContext {
val subgraph = star.subgraph(vpred = (vid, attr) => vid % 2 == 0)
assert(subgraph.vertices.collect().toSet ===
(0 to n / 2).map(x => (x * 2, "defaultValue")).toSet)
assert(subgraph.edges.collect().toSet === (1 to n / 2).map(x => Edge(0, x * 2)).toSet)
}
}