pub fn are_siblings(&self, node_1: NodeIndex, node_2: NodeIndex) -> bool {
        match (self.parent(node_1), self.parent(node_2)) {
            (Some(parent_1), Some(parent_2)) => parent_1 == parent_2,
            _ => false,
        }
    }
/// Get sibling-relation of two tree nodes.
///
/// Returns whether two nodes are immediately dominated by the same node.
Get sibling-relation of two tree nodes.
Returns whether two nodes are immediately dominated by the same node.
Get sibling - relation of two tree nodes . Returns whether two nodes are immediately dominated by the same node .
pub fn are_siblings(&self, node_1: NodeIndex, node_2: NodeIndex) -> bool {
        match (self.parent(node_1), self.parent(node_2)) {
            (Some(parent_1), Some(parent_2)) => parent_1 == parent_2,
            _ => false,
        }
    }
pub fn are_siblings ( & self , node_1 : NodeIndex , node_2 : NodeIndex ) -> bool { match ( self . parent ( node_1 ) , self . parent ( node_2 ) ) { ( Some ( parent_1 ) , Some ( parent_2 ) ) => parent_1 == parent_2 , _ => false , } }
Get sibling-relation of two tree nodes.
Get sibling - relation of two tree nodes .
&self
node_1
NodeIndex
node_2
NodeIndex
&self
node_1
NodeIndex
node_2
NodeIndex