lib/jumoku/builders/extended.rb
# Returns true if actual branches are included in the specified set of branches
# (no ordering criterion).
#
# Labels are not part of the matching constraint: only connected nodes
# matter in defining equality.
#
# @param [*Branch, *nodes] *maybe_branches a list of branches, either as Branch
#   objects or as nodes pairs
# @return [Boolean]
#
Returns true if actual branches are included in the specified set of branches
(no ordering criterion).

Labels are not part of the matching constraint: only connected nodes
matter in defining equality.
Returns true if actual branches are included in the specified set of branches ( no ordering criterion ) . Labels are not part of the matching constraint : only connected nodes matter in defining equality .
def branches_among?(*maybe_branches)
      list = maybe_branches.create_branches_list(_branch_type)
      branches.all? do |branch|
        list.any? do |maybe_branch|
          branch == maybe_branch
        end
      end
    end
def branches_among? ( * maybe_branches ) list = maybe_branches . create_branches_list ( _branch_type ) branches . all? do | branch | list . any? do | maybe_branch | branch == maybe_branch end end end
Returns true if actual branches are included in the specified set of branches
(no ordering criterion).
Returns true if actual branches are included in the specified set of branches ( no ordering criterion ) .
None
Boolean
maybe_branches
<not_specific>
<not_specific>
maybe_branches a list of branches, either as Branch objects or as nodes pairs
maybe_branches a list of branches either as Branch objects or as nodes pairs