Expand description
§icb-graph
Code Property Graph engine.
This crate builds and queries the Code Property Graph (CPG). It consumes
[RawNode] facts from icb-parser, deduplicates symbols using their
unique identifiers, and provides query APIs for tasks like finding all
functions or call sites.
The graph is stored as a petgraph::stable_graph::StableGraph with
node and edge types defined in the graph module.
§Workflow
- Create a
builder::GraphBuilder. - Call
builder::GraphBuilder::ingest_file_factswith the facts from one or more files. - Access the
graph::CodePropertyGraphvia the builder’scpgfield. - Use
queryfunctions to extract information.