Expand description
trueno-graph has moved to aprender-graph.
This crate re-exports aprender-graph for backward compatibility.
New code should depend on aprender-graph directly.
Modules§
- algorithms
- Graph algorithms (BFS,
PageRank, clustering, topological, structure, paths) - storage
- Graph storage layer
Structs§
- Community
Detection Result - Community detection result
- CsrGraph
- CSR (Compressed Sparse Row) graph
- Error
- The
Errortype, a wrapper around a dynamic error type. - NodeId
- Node identifier (zero-indexed)
- Pattern
- Pattern specification for matching
- Pattern
Match - Pattern matching result
Enums§
- Severity
- Severity level for anti-patterns
Functions§
- bfs
- Breadth-First Search from source node
- connected_
components - Count the number of weakly connected components in the graph
- dijkstra
- Compute single-source shortest paths using Dijkstra’s algorithm
- dijkstra_
path - find_
callers - Find all functions that transitively call the target function
- find_
patterns - Find all pattern matches in the graph
- is_
cyclic - Check if the graph contains any cycles
- kosaraju_
scc - Find strongly connected components using Kosaraju’s algorithm
- louvain
- Detect communities using the Louvain algorithm
- pagerank
- Compute
PageRankscores for all nodes in the graph - toposort
- Compute topological ordering of a directed acyclic graph (DAG)
Type Aliases§
- Result
Result<T, Error>