pub struct RawGraphMetrics {
pub max_pagerank: f64,
pub max_betweenness: f64,
pub code_neighbor_count: usize,
pub total_edge_weight: f64,
pub memory_neighbor_count: usize,
pub memory_edge_weight: f64,
}Expand description
Raw graph metrics for a memory node, collected from its neighbors.
Returned by GraphEngine::raw_graph_metrics_for_memory() so that the
scoring formula can live in the engine crate.
Fields§
§max_pagerank: f64Highest PageRank score among code-graph neighbors.
max_betweenness: f64Highest betweenness centrality among code-graph neighbors.
code_neighbor_count: usizeNumber of code-graph neighbors (sym:, file:, chunk:, pkg:).
total_edge_weight: f64Sum of edge weights connecting this memory to code-graph neighbors.
memory_neighbor_count: usizeNumber of memory-to-memory neighbors (UUID-based IDs).
memory_edge_weight: f64Sum of edge weights connecting this memory to other memory nodes.
Trait Implementations§
Source§impl Clone for RawGraphMetrics
impl Clone for RawGraphMetrics
Source§fn clone(&self) -> RawGraphMetrics
fn clone(&self) -> RawGraphMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RawGraphMetrics
impl RefUnwindSafe for RawGraphMetrics
impl Send for RawGraphMetrics
impl Sync for RawGraphMetrics
impl Unpin for RawGraphMetrics
impl UnsafeUnpin for RawGraphMetrics
impl UnwindSafe for RawGraphMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more