pub struct DependencyGraph { /* private fields */ }Expand description
Dependency graph containing all tasks and their relationships.
Implementations§
Source§impl DependencyGraph
impl DependencyGraph
pub fn get_blocking_chain(&self, task_id: &str) -> Vec<String>
pub fn get_blocked_chain(&self, task_id: &str) -> Vec<String>
pub fn get_blocking_chain_bounded( &self, task_id: &str, limit: usize, ) -> BoundedChainResult
pub fn get_blocked_chain_bounded( &self, task_id: &str, limit: usize, ) -> BoundedChainResult
pub fn get_blocks_chain(&self, task_id: &str) -> Vec<String>
pub fn get_blocked_by_chain(&self, task_id: &str) -> Vec<String>
pub fn get_duplicate_chain(&self, task_id: &str) -> Vec<String>
pub fn get_immediate_dependencies(&self, task_id: &str) -> Vec<String>
pub fn get_immediate_dependents(&self, task_id: &str) -> Vec<String>
pub fn get_immediate_blocks(&self, task_id: &str) -> Vec<String>
pub fn get_immediate_blocked_by(&self, task_id: &str) -> Vec<String>
pub fn get_immediate_relates_to(&self, task_id: &str) -> Vec<String>
pub fn get_immediate_duplicated_by(&self, task_id: &str) -> Vec<String>
Source§impl DependencyGraph
impl DependencyGraph
Sourcepub fn is_on_critical_path(
&self,
task_id: &str,
critical_paths: &[CriticalPathResult],
) -> bool
pub fn is_on_critical_path( &self, task_id: &str, critical_paths: &[CriticalPathResult], ) -> bool
Returns true if the task is on any critical path.
Sourcepub fn is_task_completed(&self, task_id: &str) -> bool
pub fn is_task_completed(&self, task_id: &str) -> bool
Check if a task is completed (done or rejected). Missing tasks are treated as completed.
Trait Implementations§
Source§impl Clone for DependencyGraph
impl Clone for DependencyGraph
Source§fn clone(&self) -> DependencyGraph
fn clone(&self) -> DependencyGraph
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 DependencyGraph
impl RefUnwindSafe for DependencyGraph
impl Send for DependencyGraph
impl Sync for DependencyGraph
impl Unpin for DependencyGraph
impl UnsafeUnpin for DependencyGraph
impl UnwindSafe for DependencyGraph
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