fn visualize<F>(&self, scope: &Node, annotate: &F) -> ClusterNode
    where
        F: Fn(&GlobalNodeId) -> String,
    {
        let mut nodes = Vec::new();
        for nodeid in self.nodes.iter() {
            if let Some(vnode) = scope
                .children()
                .unwrap()
                .get(nodeid)
                .unwrap()
                .visualize(annotate)
            {
                nodes.push(vnode)
            }
        }
        for child in self.children.iter() {
            nodes.push(VisNode::Cluster(child.visualize(scope, annotate)));
        }
        ClusterNode::new(
            Self::region_identifier(&scope.id, &self.id),
            self.name.to_string(),
            nodes,
        )
    }
/// Output region as a cluster in a visual graph.
Output region as a cluster in a visual graph.
Output region as a cluster in a visual graph .
fn visualize<F>(&self, scope: &Node, annotate: &F) -> ClusterNode
    where
        F: Fn(&GlobalNodeId) -> String,
    {
        let mut nodes = Vec::new();
        for nodeid in self.nodes.iter() {
            if let Some(vnode) = scope
                .children()
                .unwrap()
                .get(nodeid)
                .unwrap()
                .visualize(annotate)
            {
                nodes.push(vnode)
            }
        }
        for child in self.children.iter() {
            nodes.push(VisNode::Cluster(child.visualize(scope, annotate)));
        }
        ClusterNode::new(
            Self::region_identifier(&scope.id, &self.id),
            self.name.to_string(),
            nodes,
        )
    }
fn visualize < F > ( & self , scope : & Node , annotate : & F ) -> ClusterNode where F : Fn ( & GlobalNodeId ) -> String , { let mut nodes = Vec :: new ( ) ; for nodeid in self . nodes . iter ( ) { if let Some ( vnode ) = scope . children ( ) . unwrap ( ) . get ( nodeid ) . unwrap ( ) . visualize ( annotate ) { nodes . push ( vnode ) } } for child in self . children . iter ( ) { nodes . push ( VisNode :: Cluster ( child . visualize ( scope , annotate ) ) ) ; } ClusterNode :: new ( Self :: region_identifier ( & scope . id , & self . id ) , self . name . to_string ( ) , nodes , ) }
Output region as a cluster in a visual graph.
Output region as a cluster in a visual graph .
&self
scope
&Node
annotate
&F