Code graph
Latest stable Based on Graph release 0.5.1
Problem and backend
Section titled “Problem and backend”This example models modules, declarations, and calls so dependency and call paths can be inspected directly. It uses TinkerGraph to isolate modeling from container and network variance. Read core model and TinkerPop first; use the selection guide before production.
- Nodes: Module/Class/Function
- Edges: DEPENDS_ON/IMPORTS/EXTENDS/IMPLEMENTS/CALLS/BELONGS_TO
- Key properties: name, qualifiedName, signature, dependencyType, callCount
Prerequisites and release boundary
Section titled “Prerequisites and release boundary”Use JDK 21, commit 3e0fa7cb9e3bc70c2743aeebda2487f3e45e4907, and the checked-in wrapper. Examples are not published; run this release fixture as a Gradle project from the release source checkout. In a consumer application, select only bluetape4k-dependencies:<ecosystem-version> and add the required graph module without an individual version.
Run and observe
Section titled “Run and observe”./gradlew :code-graph-examples:test --tests "io.bluetape4k.graph.examples.code.TinkerGraphCodeGraphTest"The test asserts that the call path contains more than one vertex and that a disconnected pair has no path. A failure usually means the fixture edges, their direction, or the traversal depth no longer matches the code-graph model.
Reading order
Section titled “Reading order”Continue from ktor-graph, then read knowledge-graph. Also see paired APIs, testing, and operations.
Exercises and production gaps
Section titled “Exercises and production gaps”Add one result-changing edge and assertion; repeat through the suspend API; then run a persistent-backend concrete test serially. Add disconnected and malformed inputs as diagnostics. This fixture does not prove throughput, clustering, authorization, tenant isolation, migration, backup, remote-driver timeout, or index quality.
Release diagrams
Section titled “Release diagrams”These diagrams are loaded directly from README assets published with the 0.5.1 release and pinned to its immutable commit. They describe this manual’s released structure and runtime flows, not later Snapshot changes. Select a preview to open the SVG at the same release commit.
code graph examples architecture
Section titled “code graph examples architecture”Release README: examples/code-graph-examples/README.md
code graph examples data flow
Section titled “code graph examples data flow”Release README: examples/code-graph-examples/README.md
code graph examples ERD
Section titled “code graph examples ERD”Release README: examples/code-graph-examples/README.md


