MCPcopy Create free account

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

Functions909 in github.com/TtTRz/graphify-rs

↓ 4 callersFunctioncompute_embeddings
Compute node embeddings using random walks + Skip-gram. - `dim`: embedding dimension (default 64) - `walks_per_node`: random walks starting from each
crates/graphify-analyze/src/embedding.rs:20
↓ 4 callersFunctiondetect_incremental
Incremental detection: compares against a stored manifest and returns only changed / new files. Uses content hashes to detect modifications in existin
crates/graphify-detect/src/lib.rs:253
↓ 4 callersFunctionexport_graphml
Export the graph to GraphML format.
crates/graphify-export/src/graphml.rs:11
↓ 4 callersFunctionexport_wiki
Export wiki-style markdown documentation. Generates a `wiki/` directory with: - `index.md` — table of contents - One `.md` file per community - One `
crates/graphify-export/src/wiki.rs:17
↓ 4 callersFunctionextract_between
Extract text between two delimiters in a string.
crates/graphify-ingest/src/lib.rs:229
↓ 4 callersFunctionfilter_changes
Filter changed paths to only include relevant source files.
crates/graphify-watch/src/lib.rs:53
↓ 4 callersFunctiongenerate_report
Generate a comprehensive markdown analysis report.
crates/graphify-export/src/report.rs:28
↓ 4 callersFunctiongeneric_platform_install
Generic platform install — just writes AGENTS.md section.
src/install.rs:313
↓ 4 callersFunctiongeneric_platform_uninstall
Generic platform uninstall — just removes AGENTS.md section.
src/install.rs:325
↓ 4 callersFunctionget_name
(node: Node, source: &[u8], field: &str)
crates/graphify-extract/src/treesitter/mod.rs:332
↓ 4 callersFunctionhome_dir
()
src/install.rs:333
↓ 4 callersFunctionjsonrpc_response
(id: &Value, result: Value)
crates/graphify-serve/src/mcp/mod.rs:23
↓ 4 callersFunctionmake_edge
(src: &str, tgt: &str)
crates/graphify-core/src/graph.rs:262
↓ 4 callersFunctionmake_edge
(src: &str, tgt: &str)
crates/graphify-serve/src/mcp/mod.rs:206
↓ 4 callersFunctionmake_edge
(src: &str, tgt: &str)
crates/graphify-benchmark/src/lib.rs:259
↓ 4 callersFunctionraw
(provider: &str, model: &str)
crates/graphify-extract/src/semantic/provider.rs:119
↓ 4 callersFunctionresolve_dart_import
Resolve a Dart import. Labels like `"import 'package:foo/bar.dart'"` or `"import 'bar.dart'"`. Extracts the file stem from the path.
crates/graphify-extract/src/lib.rs:794
↓ 4 callersFunctionsafe_path
Ensure a path stays within an allowed directory (no `../` traversal). Uses `canonicalize` to resolve symlinks and relative components. Returns `PathN
crates/graphify-security/src/path_validator.rs:12
↓ 4 callersFunctionsave_manifest
Persist the current manifest to disk.
crates/graphify-detect/src/lib.rs:78
↓ 4 callersFunctionscore_nodes
Score nodes by relevance to search terms using a pre-built SearchIndex. Builds a fresh index per call. Callers doing repeated searches should use [`S
crates/graphify-serve/src/lib.rs:34
↓ 4 callersFunctionwalk_node
( node: Node, source: &[u8], config: &TsConfig, ctx: &mut WalkContext, parent_class_nid: O
crates/graphify-extract/src/treesitter/mod.rs:240
↓ 4 callersMethodwrite_node_link_json
Stream the graph as NetworkX `node_link_data` JSON directly to a writer. Serialize to the NetworkX `node_link_data` JSON format, writing to the provi
crates/graphify-core/src/graph.rs:187
↓ 3 callersFunctionbuild_system_prompt
(file_type: &str)
crates/graphify-extract/src/semantic/mod.rs:83
↓ 3 callersFunctionbuild_user_prompt
(content: &str, file_type: &str)
crates/graphify-extract/src/semantic/mod.rs:95
↓ 3 callersFunctioncache_key
Build a cache filename from a file path relative to `root`. The key is `{sha256}.json` where the hash is computed over the file content, so any chang
crates/graphify-cache/src/lib.rs:45
↓ 3 callersFunctioncommunity_bridges
Find nodes that bridge multiple communities. A bridge node has a high ratio of cross-community edges to total edges. Returns up to `top_n` nodes sort
crates/graphify-analyze/src/lib.rs:363
↓ 3 callersFunctionconnected_components_within
Find connected components within a subset of nodes using BFS.
crates/graphify-cluster/src/lib.rs:447
↓ 3 callersFunctioncontent_hash
Compute the SHA256 hex digest of arbitrary bytes.
crates/graphify-cache/src/lib.rs:36
↓ 3 callersFunctiondispatch_map
Build a hashmap for fast extension lookup (cached).
crates/graphify-extract/src/lib.rs:61
↓ 3 callersFunctionescape_js
(s: &str)
crates/graphify-export/src/html_templates.rs:1
↓ 3 callersFunctionestimate_tokens
Estimate the number of tokens in a string. Uses the approximation: 1 token ≈ 4 characters.
crates/graphify-benchmark/src/lib.rs:62
↓ 3 callersFunctionextract_import
( node: Node, source: &[u8], file_nid: &str, str_path: &str, lang: &str, edges: &mut V
crates/graphify-extract/src/treesitter/imports.rs:13
↓ 3 callersFunctiongraph_stats
Get basic statistics about the graph.
crates/graphify-serve/src/lib.rs:359
↓ 3 callersFunctionhook_status
Check whether graphify hooks are installed in the repository at `repo_root`. Returns a human-readable status string.
crates/graphify-hooks/src/lib.rs:121
↓ 3 callersFunctionis_method_stub
Is this a method stub (.method_name() or isolated fn()?
crates/graphify-analyze/src/lib.rs:441
↓ 3 callersFunctionjs_config
()
crates/graphify-extract/src/treesitter/treesitter_config.rs:61
↓ 3 callersFunctionload_graphifyignore
Read `.graphifyignore` from `root` and return the raw pattern strings. Returns an empty vec if the file does not exist.
crates/graphify-detect/src/ignore.rs:17
↓ 3 callersFunctionmake_edge
(src: &str, tgt: &str, relation: &str, confidence: Confidence)
crates/graphify-analyze/src/tests.rs:35
↓ 3 callersFunctionmake_edge
( source_id: &str, target_id: &str, relation: &str, source_file: &str, line: usize, )
crates/graphify-extract/src/treesitter/mod.rs:365
↓ 3 callersFunctionmake_test_tree
Create a temporary project tree for integration tests.
crates/graphify-detect/src/lib.rs:338
↓ 3 callersFunctionnode_strength
Sum of weights of edges incident to a node.
crates/graphify-cluster/src/lib.rs:176
↓ 3 callersMethodparse
(&self, path: &Path, source: &[u8])
crates/graphify-extract/src/parser.rs:28
↓ 3 callersFunctionresolve_go_import
Resolve a Go import to target entities. Go import labels are like `"fmt"`, `"net/http"`, or `"myproject/pkg/utils"`. Handles dot imports (`import . "
crates/graphify-extract/src/lib.rs:632
↓ 3 callersFunctionresolve_python_imports
Resolve Python `import` / `from ... import` edges to actual module/function nodes discovered across files. Also handles `from x import *` by expandin
crates/graphify-extract/src/lib.rs:181
↓ 3 callersFunctionrun_benchmark
Run the benchmark suite on the graph at `graph_path`. # Arguments `graph_path` - Path to the graph JSON file. `corpus_words` - Optional word count of
crates/graphify-benchmark/src/lib.rs:151
↓ 3 callersFunctionsample_graph
()
crates/graphify-export/src/obsidian.rs:136
↓ 3 callersFunctionsample_node
()
crates/graphify-core/src/model.rs:200
↓ 3 callersFunctionsanitize_label
Sanitize a label for safe use in HTML/GraphML output. - Strips control characters - Truncates to 256 characters - HTML-escapes `&`, `<`, `>`, `"`, an
crates/graphify-security/src/label_validator.rs:11
↓ 3 callersFunctionsave_query_result
Save a query result (question + answer) to the memory directory. Used by the `save-result` CLI command to persist LLM query results for future refere
crates/graphify-ingest/src/lib.rs:200
↓ 3 callersFunctionsimulate_query
Simulate a query against the graph and estimate context tokens needed. For each query, we find matching nodes and gather their neighborhood, then mea
crates/graphify-benchmark/src/lib.rs:75
↓ 2 callersFunctionbuild_adjacency
Build an adjacency list from the KnowledgeGraph for efficient lookups.
crates/graphify-cluster/src/lib.rs:148
↓ 2 callersFunctionbuild_node_to_community
Build a reverse lookup from node ID to community ID.
crates/graphify-core/src/lib.rs:10
↓ 2 callersFunctionc_config
()
crates/graphify-extract/src/lang_config.rs:152
↓ 2 callersFunctionclear_cache_dir
Remove all cached files from the given cache directory.
crates/graphify-cache/src/lib.rs:123
↓ 2 callersFunctioncmd_build
( path: &str, output: &str, no_llm: bool, code_only: bool, update: bool, formats: &[St
src/cmd_build.rs:15
↓ 2 callersFunctioncommunity_filename
(cid: usize)
crates/graphify-export/src/wiki.rs:183
↓ 2 callersFunctiondate_to_age
Simple day counter: days since 2020-01-01 from an ISO date string. Uses the same calculation as [`chrono_days_since_epoch`] to avoid offset from using
crates/graphify-analyze/src/temporal.rs:112
↓ 2 callersFunctiondetect_inner
Internal detect that optionally computes content hashes during the walk to avoid double I/O when doing incremental detection. When `compute_hashes` i
crates/graphify-detect/src/lib.rs:96
↓ 2 callersFunctiondfs
DFS 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:80
↓ 2 callersFunctionexport_html_split
Export a split HTML visualization into `output_dir/html/`. Generates: - `html/index.html` — overview page where each community is a single super-node
crates/graphify-export/src/html.rs:229
↓ 2 callersFunctionfind_similar
Find top-N most similar node pairs by cosine similarity of embeddings.
crates/graphify-analyze/src/embedding.rs:114
↓ 2 callersMethodget_node_mut
Get a mutable reference to a node by its string ID.
crates/graphify-core/src/graph.rs:72
↓ 2 callersFunctionhandle_class_like
( node: Node, source: &[u8], config: &TsConfig, ctx: &mut WalkContext, )
crates/graphify-extract/src/treesitter/handlers.rs:13
↓ 2 callersFunctionhandle_function
( node: Node, source: &[u8], config: &TsConfig, ctx: &mut WalkContext, parent_class_nid: O
crates/graphify-extract/src/treesitter/handlers.rs:198
↓ 2 callersFunctionip_is_private
Check if an IP address is private, loopback, link-local, or reserved.
crates/graphify-security/src/url_validator.rs:58
↓ 2 callersMethodis_ignored
Returns `true` if `path` (relative to `root`) matches any ignore pattern.
crates/graphify-detect/src/ignore.rs:48
↓ 2 callersFunctionis_in_range
( ip: &std::net::Ipv4Addr, start: &std::net::Ipv4Addr, end: &std::net::Ipv4Addr, )
crates/graphify-security/src/url_validator.rs:85
↓ 2 callersFunctionis_inside_xcode_asset
Check whether the path lives inside an Xcode asset catalog.
crates/graphify-detect/src/classify.rs:91
↓ 2 callersMethodis_quiet
(self)
src/main.rs:235
↓ 2 callersFunctionjavascript_config
()
crates/graphify-extract/src/lang_config.rs:59
↓ 2 callersFunctionjsonrpc_error
(id: &Value, code: i64, message: &str)
crates/graphify-serve/src/mcp/mod.rs:31
↓ 2 callersFunctionlanguage_for_path
Return the language name for a file extension (e.g. `".py"` → `"python"`).
crates/graphify-extract/src/lib.rs:68
↓ 2 callersFunctionload_config
Load configuration from `graphify-rs.toml` in the given directory. Returns default config if file doesn't exist or can't be parsed.
src/config.rs:32
↓ 2 callersFunctionload_graph
Load a knowledge graph from a JSON file.
crates/graphify-serve/src/lib.rs:352
↓ 2 callersFunctionload_manifest
Load a previously-saved manifest from disk.
crates/graphify-detect/src/lib.rs:72
↓ 2 callersFunctionlouvain_phase
Phase 1: Greedy modularity optimization (Louvain move phase). Iterates over nodes and moves each to the neighboring community that yields the greates
crates/graphify-cluster/src/lib.rs:244
↓ 2 callersFunctionmake_dummy
()
crates/graphify-cache/src/lib.rs:160
↓ 2 callersFunctionmake_edge
(src: &str, tgt: &str)
benches/graphify_bench.rs:23
↓ 2 callersFunctionmake_graph
()
crates/graphify-analyze/src/embedding.rs:208
↓ 2 callersFunctionnode
(id: &str)
crates/graphify-extract/src/dedup.rs:43
↓ 2 callersFunctionnode_filename
(id: &str)
crates/graphify-export/src/wiki.rs:187
↓ 2 callersFunctionnormalize_path
Normalize a file path to POSIX style: forward slashes, no leading `./`. Note: does not resolve `..` segments — assumes both tools produce consistently
crates/graphify-build/src/codegraph_merge.rs:33
↓ 2 callersFunctionprint_benchmark
Print a human-readable benchmark report.
crates/graphify-benchmark/src/lib.rs:210
↓ 2 callersFunctionprune_nodes
Select the most important nodes for visualization when the graph is too large. Strategy: 1. Include top N nodes by degree (hub nodes) 2. Include at l
crates/graphify-export/src/html.rs:183
↓ 2 callersFunctionpython_config
()
crates/graphify-extract/src/lang_config.rs:43
↓ 2 callersFunctionrefinement_phase
Phase 2: Leiden refinement. For each community, find its connected components. If a community is internally disconnected, split it — move each discon
crates/graphify-cluster/src/lib.rs:346
↓ 2 callersFunctionresolve_jsts_import
Resolve a JS/TS import label to target entities. Import labels can be: - `"module/ExportedName"` (named import from module) - `"DefaultName"` (defaul
crates/graphify-extract/src/lib.rs:591
↓ 2 callersFunctionresolve_rust_import
Resolve a Rust `use` import to target entities. Handles `pub use` re-exports, glob imports (`use foo::*`), and specific type imports (`use crate::mod
crates/graphify-extract/src/lib.rs:663
↓ 2 callersFunctionsample_graph
()
crates/graphify-export/src/html.rs:660
↓ 2 callersFunctionsanitize_filename
Sanitize a label for use as both a filename and a `[[wikilink]]` target. Truncates to [`graphify_core::MAX_FILENAME_BYTES`] to avoid "File name too l
crates/graphify-export/src/obsidian.rs:115
↓ 2 callersFunctionsplit_community
Try to split an oversized community by running partition on its subgraph.
crates/graphify-cluster/src/lib.rs:550
↓ 2 callersFunctiontotal_weight
Compute total weight of edges in the graph (sum of all edge weights).
crates/graphify-cluster/src/lib.rs:165
↓ 2 callersFunctiontruncate_to_bytes
Truncate a string to at most `max_bytes` bytes while preserving UTF-8 validity.
crates/graphify-core/src/lib.rs:25
↓ 2 callersFunctiontypescript_config
()
crates/graphify-extract/src/lang_config.rs:85
↓ 2 callersFunctionuninstall_hooks
Uninstall graphify git hooks from the repository at `repo_root`. Removes the graphify marker block from each managed hook file. If the resulting file
crates/graphify-hooks/src/lib.rs:85
↓ 1 callersFunctionarchitecture_level_summary
Architecture-level summary: group by directory, aggregate edges.
crates/graphify-serve/src/lib.rs:292
↓ 1 callersMethodbuild
Build the inverted index from a knowledge graph. Token weights: - Label token: `2.0 + ln_1p(degree) * 0.1` - Id token: `1.0 + ln_1p(degree) * 0.1`
crates/graphify-serve/src/search.rs:78
↓ 1 callersFunctionbuild_html_template
( vis_nodes: &str, vis_edges: &str, legend_html: &str, hyperedge_html: &str, prune_banner:
crates/graphify-export/src/html_templates.rs:16
↓ 1 callersFunctionbuild_unique_filenames
(graph: &KnowledgeGraph)
crates/graphify-export/src/obsidian.rs:88
↓ 1 callersFunctionbuild_unique_var_names
(graph: &KnowledgeGraph)
crates/graphify-export/src/cypher.rs:91
← previousnext →101–200 of 909, ranked by callers