MCPcopy Create free account

hub / github.com/TtTRz/graphify-rs / functions

Functions909 in github.com/TtTRz/graphify-rs

↓ 95 callersFunctionhs
(items: &[&'static str])
crates/graphify-extract/src/lang_config.rs:37
↓ 81 callersMethodadd_node
Add a node. Returns an error if a node with the same `id` already exists.
crates/graphify-core/src/graph.rs:41
↓ 58 callersMethodget_node
(&self, id: &str)
crates/graphify-core/src/graph.rs:65
↓ 43 callersFunctionsimple_node
(id: &str)
crates/graphify-analyze/src/tests.rs:50
↓ 42 callersFunctiontry_extract
(path: &Path, source: &[u8], lang: &str)
crates/graphify-extract/src/treesitter/mod.rs:22
↓ 41 callersMethodadd_edge
Add an edge between two nodes identified by their string IDs.
crates/graphify-core/src/graph.rs:52
↓ 38 callersFunctionmake_edge
( source_id: &str, target_id: &str, relation: &str, path: &Path, confidence: Confidence, )
crates/graphify-extract/src/ast_extract/mod.rs:205
↓ 36 callersFunctionline_of
Line number (1-based) where a regex capture starts in `source`.
crates/graphify-extract/src/ast_extract/mod.rs:227
↓ 35 callersFunctionextract_file
Extract graph nodes and edges from a single source file.
crates/graphify-extract/src/ast_extract/mod.rs:153
↓ 33 callersFunctionnode_text
(node: Node, source: &[u8])
crates/graphify-extract/src/treesitter/mod.rs:328
↓ 31 callersMethodnode_ids
Iterate over all node IDs.
crates/graphify-core/src/graph.rs:103
↓ 28 callersFunctionmake_id
Generate a deterministic ID from string parts. Matches the Python `_make_id` implementation exactly: ```python def _make_id(*parts: str) -> str: comb
crates/graphify-core/src/id.rs:10
↓ 27 callersFunctionsimple_edge
(src: &str, tgt: &str)
crates/graphify-analyze/src/tests.rs:54
↓ 24 callersFunctionbuild
Merge multiple extraction results into one graph. Later extractions override earlier ones for same node IDs (first-write-wins via `add_node` which re
crates/graphify-build/src/lib.rs:52
↓ 24 callersFunctionbuild_graph
(nodes: &[GraphNode], edges: &[GraphEdge])
crates/graphify-analyze/src/tests.rs:58
↓ 24 callersFunctiondispatch
(graph: &KnowledgeGraph, index: &SearchIndex, request: &Value)
crates/graphify-serve/src/mcp/mod.rs:72
↓ 24 callersFunctiontest_index
(g: &KnowledgeGraph)
crates/graphify-serve/src/mcp/mod.rs:237
↓ 23 callersFunctionmake_node
(name: &str, path: &Path, node_type: NodeType, line: usize)
crates/graphify-extract/src/ast_extract/mod.rs:192
↓ 21 callersFunctiontest_graph
()
crates/graphify-serve/src/mcp/mod.rs:221
↓ 21 callersFunctiontool_result_error
(text: &str)
crates/graphify-serve/src/mcp/handlers.rs:26
↓ 20 callersMethodsearch
Search for nodes matching any of the given terms. Each term is tokenized and matched against the index using **exact** and prefix** matching. Scores
crates/graphify-serve/src/search.rs:114
↓ 19 callersFunctionmake_test_graph
()
crates/graphify-serve/src/lib.rs:590
↓ 17 callersFunctionadd_import_node
( nodes: &mut Vec<GraphNode>, edges: &mut Vec<GraphEdge>, file_nid: &str, str_path: &str,
crates/graphify-extract/src/treesitter/imports.rs:487
↓ 17 callersMethoddegree
Get the degree (number of edges) for a node by id.
crates/graphify-core/src/graph.rs:108
↓ 17 callersMethodnodes
Collect all nodes as a Vec.
crates/graphify-core/src/graph.rs:123
↓ 17 callersFunctionvalidate_url
Validate a URL: must be http/https, must not resolve to private/localhost IPs. Note: this is a static check only. It does not protect against DNS reb
crates/graphify-security/src/url_validator.rs:18
↓ 16 callersFunctioncluster
Run community detection on the graph. Returns `{community_id: [node_ids]}`. Uses the Leiden algorithm: greedy modularity optimization (Louvain phase)
crates/graphify-cluster/src/lib.rs:35
↓ 16 callersMethodedges
Iterate over all edge weights.
crates/graphify-core/src/graph.rs:145
↓ 15 callersMethodedges_with_endpoints
Iterate over all edges as `(source_id, target_id, &GraphEdge)`.
crates/graphify-core/src/graph.rs:131
↓ 15 callersFunctiongod_nodes
Find the most-connected nodes, excluding file-level hubs and method stubs. Returns up to `top_n` nodes sorted by degree descending. Generic labels li
crates/graphify-analyze/src/lib.rs:18
↓ 15 callersFunctionmake_graph
()
crates/graphify-serve/src/search.rs:171
↓ 15 callersFunctionresolve_cross_file_imports
Resolve cross-file imports for JS/TS, Go, and Rust. For each `imports` edge, tries to match the imported module name to a file stem and then creates
crates/graphify-extract/src/lib.rs:272
↓ 15 callersFunctionresolve_default_output
(project_root: &Path)
src/paths.rs:9
↓ 15 callersFunctiontool_result_json
(value: &T)
crates/graphify-serve/src/mcp/handlers.rs:20
↓ 14 callersFunctiontokenize
Split `input` on camelCase boundaries, `_`, `.`, `::`, `/`, `\`, `-`, and whitespace. Returns all-lowercase, non-empty tokens. # Examples (implicit,
crates/graphify-serve/src/search.rs:22
↓ 13 callersFunctionpath_str
(path: &Path)
crates/graphify-extract/src/ast_extract/mod.rs:175
↓ 12 callersFunctioninsert_cg_node
(conn: &Connection, id: &str, kind: &str, name: &str, file_path: &str)
crates/graphify-build/src/codegraph_merge.rs:366
↓ 11 callersFunctionextract
Run Pass 1 extraction on a set of file paths. Dispatches each file to the appropriate regex-based extractor, collects all nodes and edges, deduplicat
crates/graphify-extract/src/lib.rs:121
↓ 11 callersFunctionmake_node
(id: &str)
crates/graphify-core/src/graph.rs:250
↓ 11 callersFunctionmake_node
(id: &str, label: &str)
crates/graphify-serve/src/lib.rs:563
↓ 11 callersFunctiontool_result_text
(text: &str)
crates/graphify-serve/src/mcp/handlers.rs:11
↓ 10 callersFunctionbuild_graph
(nodes: &[&str], edges: &[(&str, &str)])
crates/graphify-cluster/src/lib.rs:759
↓ 10 callersFunctionend_line_at
1-based end line of `source` at byte offset of the next capture's start, or end of file if this is the last capture.
crates/graphify-extract/src/ast_extract/mod.rs:233
↓ 10 callersFunctioninfer_calls
Simple call-graph inference: for each function body, look for occurrences of other known function names.
crates/graphify-extract/src/ast_extract/mod.rs:247
↓ 10 callersFunctionmake_file_node
(path: &Path)
crates/graphify-extract/src/ast_extract/mod.rs:179
↓ 10 callersFunctionmake_node
(id: &str, label: &str, community: Option<usize>)
crates/graphify-serve/src/mcp/mod.rs:194
↓ 10 callersMethodpartial_cmp
(&self, other: &Self)
crates/graphify-serve/src/lib.rs:493
↓ 10 callersFunctionread_token_from_file
(path: &std::path::Path)
crates/graphify-extract/src/semantic/anthropic_oauth.rs:23
↓ 10 callersFunctionrun_pipeline
Helper: run the full pipeline on a temp dir and return the graph + output dir.
tests/integration/test_e2e.rs:10
↓ 9 callersFunctionbfs
BFS traversal from start nodes up to a maximum depth. Returns `(visited_nodes, edges_traversed)` where edges are `(source, target)` pairs.
crates/graphify-serve/src/lib.rs:42
↓ 9 callersFunctiondetect
Walk `root` and return a [`DetectResult`] with all discovered files.
crates/graphify-detect/src/lib.rs:85
↓ 9 callersFunctionmake_node
(id: &str, label: &str, source_file: &str)
crates/graphify-analyze/src/tests.rs:23
↓ 8 callersMethoddefault_score
Default numeric score for each confidence level.
crates/graphify-core/src/confidence.rs:18
↓ 8 callersFunctionload_cached_from
Like [`load_cached`] but with an explicit cache directory.
crates/graphify-cache/src/lib.rs:61
↓ 8 callersFunctionmake_graph_node
(id: &str, label: &str, file: &str, nt: NodeType)
crates/graphify-build/src/codegraph_merge.rs:382
↓ 8 callersFunctionmake_node
(id: &str, label: &str, source_file: &str)
crates/graphify-serve/src/search.rs:159
↓ 8 callersFunctionmake_node
(id: &str, label: &str)
crates/graphify-benchmark/src/lib.rs:247
↓ 7 callersFunctionbuild_from_extraction
Build a [`KnowledgeGraph`] from a single extraction result. All nodes are added first; edges that reference unknown source/target nodes are silently
crates/graphify-build/src/lib.rs:22
↓ 7 callersFunctiondedup_file
Deduplicate nodes within a single file's [`ExtractionResult`]. Retains the **first** occurrence of each node ID and each `(source, target, relation)`
crates/graphify-extract/src/dedup.rs:14
↓ 7 callersFunctionexport_json
Export graph to `graph.json` in NetworkX `node_link_data` format. Uses streaming serialization via `BufWriter` to avoid building the entire JSON stri
crates/graphify-export/src/json.rs:15
↓ 7 callersFunctioninsert_cg_edge
(conn: &Connection, source: &str, target: &str, kind: &str)
crates/graphify-build/src/codegraph_merge.rs:374
↓ 7 callersFunctioninstall_hooks
Install graphify git hooks in the repository at `repo_root`. Installs post-commit and post-checkout hooks. If the hook files already exist, the graph
crates/graphify-hooks/src/lib.rs:42
↓ 7 callersFunctionmake_edge
(src: &str, tgt: &str)
crates/graphify-serve/src/lib.rs:575
↓ 7 callersFunctionmerge_codegraph_edges
Merge edges from a CodeGraph SQLite database into an existing [`KnowledgeGraph`]. Looks for `.codegraph/codegraph.db` under `project_root`. If not fo
crates/graphify-build/src/codegraph_merge.rs:62
↓ 7 callersMethodneighbor_ids
Get neighbor IDs as strings.
crates/graphify-core/src/graph.rs:115
↓ 7 callersMethodnode_count
(&self)
crates/graphify-core/src/graph.rs:89
↓ 7 callersFunctionpagerank
Compute PageRank importance scores for all nodes. Returns the top `top_n` nodes sorted by PageRank score descending. Uses the power iteration method
crates/graphify-analyze/src/lib.rs:483
↓ 7 callersFunctionresolve_dot_import
Resolve a dot-separated import (Java, C#, Kotlin, Scala, Swift). Import labels like `"java.util.List"` or `"System.Collections.Generic"`. Handles ali
crates/graphify-extract/src/lib.rs:705
↓ 6 callersFunctionall_simple_paths
Find all simple paths between `source` and `target` up to `max_length` edges. Returns a vec of paths, each path being a vec of node IDs. Limits to at
crates/graphify-serve/src/lib.rs:399
↓ 6 callersFunctiondetect_cycles
Detect dependency cycles using Tarjan's algorithm for strongly connected components. Only considers directional edges (imports, uses, calls) to find
crates/graphify-analyze/src/lib.rs:572
↓ 6 callersMethodedge_count
(&self)
crates/graphify-core/src/graph.rs:93
↓ 6 callersMethodget_neighbors
(&self, id: &str)
crates/graphify-core/src/graph.rs:79
↓ 6 callersFunctiongraph_diff
Compare two graph snapshots and return a summary of changes.
crates/graphify-analyze/src/lib.rs:295
↓ 6 callersFunctionis_file_node
Is this a file-level hub node?
crates/graphify-analyze/src/lib.rs:429
↓ 6 callersFunctionparse_semantic_response
(text: &str, file_str: &str)
crates/graphify-extract/src/semantic/mod.rs:116
↓ 6 callersFunctionrebuild
Run the full pipeline: detect -> extract -> build -> cluster -> analyze -> export. When `changed_files` is provided, only those files have their cach
crates/graphify-watch/src/lib.rs:65
↓ 6 callersFunctionsuggest_questions
Generate graph-aware questions based on structural patterns. Categories: 1. AMBIGUOUS edges → unresolved relationship questions 2. Bridge nodes (high
crates/graphify-analyze/src/lib.rs:149
↓ 6 callersMethodto_node_link_json
Serialize to the NetworkX `node_link_data` JSON format.
crates/graphify-core/src/graph.rs:153
↓ 5 callersFunctionappend_section
Append a section to a file if the marker is not already present.
src/install.rs:338
↓ 5 callersFunctionbuild_test_graph
(n: usize)
benches/graphify_bench.rs:38
↓ 5 callersFunctioncohesion_score
Cohesion score: ratio of actual intra-community edges to maximum possible. Returns a value in `[0.0, 1.0]` rounded to two decimal places.
crates/graphify-cluster/src/lib.rs:107
↓ 5 callersFunctiondijkstra_path
Dijkstra shortest path using edge weights. Cost = 1.0 / edge.weight (higher weight = shorter distance). Optionally filters edges below `min_confidenc
crates/graphify-serve/src/lib.rs:448
↓ 5 callersFunctionexport_cypher
Export the graph as Cypher CREATE statements for Neo4j.
crates/graphify-export/src/cypher.rs:13
↓ 5 callersFunctionexport_html
Export an interactive HTML visualization of the knowledge graph. For large graphs (> `max_nodes` nodes), automatically prunes to the most important n
crates/graphify-export/src/html.rs:29
↓ 5 callersFunctionexport_obsidian
Export graph as an Obsidian vault (folder of `.md` files with `[[wikilinks]]`). Each node becomes a markdown file with YAML frontmatter and a **Conne
crates/graphify-export/src/obsidian.rs:15
↓ 5 callersFunctionexport_svg
Export a simple static SVG with circular layout.
crates/graphify-export/src/svg.rs:29
↓ 5 callersFunctionfile_hash
Compute the SHA256 hex digest of a file's content. Returns `None` if the file cannot be read.
crates/graphify-cache/src/lib.rs:30
↓ 5 callersFunctiongraph_md_section
(output_dir: &str)
src/install.rs:87
↓ 5 callersFunctionpopulate_cg_schema
(conn: &Connection)
crates/graphify-build/src/codegraph_merge.rs:308
↓ 5 callersFunctionremove_section
Remove a section from a file identified by a marker line. Removes from the marker line until the next `##` heading or end of file.
src/install.rs:367
↓ 5 callersFunctionresolve_cross_file_calls
Derive cross-file "calls" edges from "uses" edges created by import resolution. If function A in file X uses entity B from file Y (via import resolut
crates/graphify-extract/src/lib.rs:529
↓ 5 callersFunctionsave_cached_to
Like [`save_cached`] but with an explicit cache directory.
crates/graphify-cache/src/lib.rs:84
↓ 5 callersFunctionscore_all
Compute cohesion scores for all communities.
crates/graphify-cluster/src/lib.rs:137
↓ 5 callersFunctionsetup_fake_repo
(dir: &Path)
crates/graphify-hooks/src/lib.rs:192
↓ 5 callersFunctionstrip_html_tags
Strip all HTML tags from a string.
crates/graphify-ingest/src/lib.rs:248
↓ 5 callersFunctionstrip_marker_block
Strip the graphify marker block from hook content. Removes everything between (and including) the start and end markers, plus any surrounding blank l
crates/graphify-hooks/src/lib.rs:161
↓ 5 callersFunctionsubgraph_to_text
Convert a subgraph (set of nodes and edges) to a text representation suitable for LLM context windows. Respects a `token_budget` (approximate: 1 toke
crates/graphify-serve/src/lib.rs:119
↓ 5 callersFunctionsurprising_connections
Find surprising connections that span different communities or source files. A connection is "surprising" if: - the two endpoints belong to different
crates/graphify-analyze/src/lib.rs:75
↓ 5 callersFunctionvalidate_graph_path
Validate a graph file path: must have a `.json` extension.
crates/graphify-security/src/path_validator.rs:34
↓ 4 callersMethodcmp
(&self, other: &Self)
crates/graphify-serve/src/lib.rs:498
next →1–100 of 909, ranked by callers