Skip to content

test(dsl): add modern graph algorithm cases#815

Open
johntomcat7408-cmyk wants to merge 1 commit into
apache:masterfrom
johntomcat7408-cmyk:test/794-modern-graph-algorithms
Open

test(dsl): add modern graph algorithm cases#815
johntomcat7408-cmyk wants to merge 1 commit into
apache:masterfrom
johntomcat7408-cmyk:test/794-modern-graph-algorithms

Conversation

@johntomcat7408-cmyk

Copy link
Copy Markdown

Summary

  • add modern graph regression tests for cc, wcc, and kcore
  • add hand-verified expected outputs for each algorithm

Expected results

CC

The current implementation propagates the minimum string label through incoming edges. Each vertex therefore reports the minimum ID in its forward-reachable set: 1->1, 2->2, 3->3, 4->3, 5->5, and 6->3.

WCC

Treating the edges as undirected makes all six vertices connected, so every vertex reports component 1.

KCore

For k=2, vertices 2, 5, and 6 have degree 1 and are removed. Vertices 1, 3, and 4 form a triangle and remain with degree 2.

Tests

  • GQLAlgorithmTest: 4 tests run, 0 failures, 0 errors, 0 skipped
  • Checkstyle passed
  • Apache RAT passed

Related to #794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant