|
| 1 | +digraph CodebaseExplorer { |
| 2 | + fontname = "Helvetica,Arial,sans-serif" |
| 3 | + layout = dot |
| 4 | + rankdir = TB |
| 5 | + ranksep = 0.5 |
| 6 | + nodesep = 0.4 |
| 7 | + splines = true |
| 8 | + bgcolor = "white" |
| 9 | + |
| 10 | + node [ |
| 11 | + fontname = "Helvetica,Arial,sans-serif", |
| 12 | + shape = rect, |
| 13 | + style = "filled", |
| 14 | + color = "#475569", |
| 15 | + fillcolor = "white", |
| 16 | + penwidth = 1.4, |
| 17 | + margin = "0.16,0.10" |
| 18 | + ] |
| 19 | + |
| 20 | + edge [ |
| 21 | + fontname = "Helvetica,Arial,sans-serif", |
| 22 | + fontsize = 10, |
| 23 | + color = "#475569", |
| 24 | + fontcolor = "#475569", |
| 25 | + penwidth = 1.2 |
| 26 | + ] |
| 27 | + |
| 28 | + // Nodes |
| 29 | + sources [label = "Rust Source Files\n(.rs)", fillcolor = "#DBEAFE", color = "#2563EB"] |
| 30 | + |
| 31 | + subgraph cluster_parsing { |
| 32 | + label = "1. Parse & Analyze" |
| 33 | + style = "rounded" |
| 34 | + color = "#2563EB" |
| 35 | + fillcolor = "#F8FAFC" |
| 36 | + penwidth = 1.4 |
| 37 | + margin = 12 |
| 38 | + |
| 39 | + syn_parse [label = "syn AST Parsing", fillcolor = "#F1F5F9"] |
| 40 | + extract_defs [label = "Extract Definitions\n(modules, functions, structs)", fillcolor = "#F1F5F9"] |
| 41 | + extract_deps [label = "Extract Dependencies\n(calls, imports, definitions)", fillcolor = "#F1F5F9"] |
| 42 | + } |
| 43 | + |
| 44 | + subgraph cluster_storage { |
| 45 | + label = "2. Graph Storage" |
| 46 | + style = "rounded" |
| 47 | + color = "#7C3AED" |
| 48 | + fillcolor = "#F8FAFC" |
| 49 | + penwidth = 1.4 |
| 50 | + margin = 12 |
| 51 | + |
| 52 | + db_nodes [label = "Store Nodes\n(labeled AST elements)", fillcolor = "#F3E8FF", color = "#7C3AED"] |
| 53 | + db_edges [label = "Store Edges\n(typed relations)", fillcolor = "#F3E8FF", color = "#7C3AED"] |
| 54 | + db_csr [label = "Build CSR Matrix\n(in-memory adjacency)", fillcolor = "#F3E8FF", color = "#7C3AED"] |
| 55 | + } |
| 56 | + |
| 57 | + subgraph cluster_ranking { |
| 58 | + label = "3. Analysis & Ranking" |
| 59 | + style = "rounded" |
| 60 | + color = "#16A34A" |
| 61 | + fillcolor = "#F8FAFC" |
| 62 | + penwidth = 1.4 |
| 63 | + margin = 12 |
| 64 | + |
| 65 | + pagerank [label = "PageRank Solver", fillcolor = "#F1F5F9"] |
| 66 | + rankings [label = "Ranked Functions\n(top critical symbols)", fillcolor = "#DCFCE7", color = "#16A34A"] |
| 67 | + } |
| 68 | + |
| 69 | + // Edges |
| 70 | + sources -> syn_parse |
| 71 | + syn_parse -> extract_defs |
| 72 | + syn_parse -> extract_deps |
| 73 | + |
| 74 | + extract_defs -> db_nodes |
| 75 | + extract_deps -> db_edges |
| 76 | + |
| 77 | + db_nodes -> db_csr |
| 78 | + db_edges -> db_csr |
| 79 | + |
| 80 | + db_csr -> pagerank |
| 81 | + pagerank -> rankings |
| 82 | +} |
0 commit comments