lib/jumoku/builders/arborescence.rb
# Return the siblings for a node. Siblings are other node's parent offsprings.
#
# @param [Node] node
# @return [Array<Node>] empty list if the node is root
#
Return the siblings for a node. Siblings are other node's parent offsprings.
Return the siblings for a node . Siblings are other node ' s parent offsprings .
def siblings(node)
      return [] if root?(node)
      siblings = offsprings(parent(node))
      siblings.delete(node)
      siblings
    end
def siblings ( node ) return [ ] if root? ( node ) siblings = offsprings ( parent ( node ) ) siblings . delete ( node ) siblings end
Return the siblings for a node.
Return the siblings for a node .
empty list if the node is root
empty list if the node is root
Array<Node>
node
<not_specific>
<not_specific>
None