pub struct GraphAnalysisLimits { /* private fields */ }Expand description
How much work one analysis of one graph may cost.
A graph describes a repository someone else supplied, so every superlinear operation and every indexed allocation is admitted against a stated ceiling first. There is no default: an interactive editor, a CI job, and a batch run have different acceptable budgets, and a library that picked one would make that policy implicit.
Implementations§
Source§impl GraphAnalysisLimits
impl GraphAnalysisLimits
Sourcepub fn new(
max_nodes: u32,
max_selected_edges: u32,
max_depth: u32,
max_betweenness_work: u64,
) -> Self
pub fn new( max_nodes: u32, max_selected_edges: u32, max_depth: u32, max_betweenness_work: u64, ) -> Self
Ceilings for the admitted node count, the admitted selected-edge count, the depth one query may walk, and the betweenness work bound.
Sourcepub fn max_selected_edges(self) -> u32
pub fn max_selected_edges(self) -> u32
The selected-edge ceiling analysis construction refuses above.
Sourcepub fn max_depth(self) -> u32
pub fn max_depth(self) -> u32
The depth ceiling a neighborhood or subgraph query refuses above.
Sourcepub fn max_betweenness_work(self) -> u64
pub fn max_betweenness_work(self) -> u64
The betweenness work bound centrality refuses above.
Trait Implementations§
Source§impl Clone for GraphAnalysisLimits
impl Clone for GraphAnalysisLimits
impl Copy for GraphAnalysisLimits
Source§impl Debug for GraphAnalysisLimits
impl Debug for GraphAnalysisLimits
impl Eq for GraphAnalysisLimits
Source§impl PartialEq for GraphAnalysisLimits
impl PartialEq for GraphAnalysisLimits
impl StructuralPartialEq for GraphAnalysisLimits
Auto Trait Implementations§
impl Freeze for GraphAnalysisLimits
impl RefUnwindSafe for GraphAnalysisLimits
impl Send for GraphAnalysisLimits
impl Sync for GraphAnalysisLimits
impl Unpin for GraphAnalysisLimits
impl UnsafeUnpin for GraphAnalysisLimits
impl UnwindSafe for GraphAnalysisLimits
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