GraphImpl

Trait GraphImpl 

Source
pub trait GraphImpl {
    // Required method
    fn cleanup_precise(&mut self);

    // Provided method
    fn cleanup(&mut self) { ... }
}

Required Methods§

Source

fn cleanup_precise(&mut self)

Traverses the graph and drops any inaccessible node. Disregards any heuristic designed to improve cleanup performance.

Provided Methods§

Source

fn cleanup(&mut self)

Traverses the graph and drops inaccessible nodes. This method will miss some of the leaked items which might result in spikes in memory usage. !! Currently, none of the possible heuristics are implemented.

Implementors§

Source§

impl<Root, NodeType> GraphImpl for GenericGraph<Root, NodeType>
where Root: RootCollection<'static, NodeType>, NodeType: GraphNode,