icentral_graph/
node_to_muc_debugger.rs

1crate::ix!();
2
3pub struct NodeToMinimumUnionCycleDebugger<'g,G> {
4    host: &'g G,
5}
6
7impl<GH> Graph<GH> {
8
9    pub fn node_to_muc_debugger<'g>(&'g self) -> NodeToMinimumUnionCycleDebugger<'g,Self> 
10    {
11        NodeToMinimumUnionCycleDebugger {
12            host: self,
13        }
14    }
15}
16
17impl<'g,G: GetNodesToMucs> fmt::Debug for NodeToMinimumUnionCycleDebugger<'g,G> {
18
19    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
20
21        f.debug_list()
22            .entries(self.host.get_nodes_to_mucs().iter())
23            .finish()
24    }
25}
26