Cover { @Procedure @Description("apoc.algo.cover(nodes) yield rel - returns all relationships between this set of nodes") public Stream<RelationshipResult> cover(@Name("nodes") Object nodes) { Set<Node> nodeSet = Util.nodeStream(tx, nodes).collect(Collectors.toSet()); return coverNodes(nodeSet).map(RelationshipResult::new); }  @Procedure @Description("apoc.algo.cover(nodes) yield rel - returns all relationships between this set of nodes") Stream<RelationshipResult> cover(@Name("nodes") Object nodes); static Stream<Relationship> coverNodes(Collection<Node> nodes); @Context
    public Transaction tx; }
@Test public void testCover() throws Exception { TestUtil.testCall(db, "match (n) with collect(id(n)) as nodes call apoc.algo.cover(nodes) yield rel return count(*) as c", (r) -> assertEquals(3L,r.get("c"))); }