Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Update Non ambiguous tree documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Boussicault committed Jul 1, 2016
1 parent 6676817 commit b7f9e63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/sage/combinat/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
from .parallelogram_polyomino import (
ParallelogramPolyomino, ParallelogramPolyominoes
)
from non_ambiguous_tree import NonAmbiguousTrees, NonAmbiguousTree
from .non_ambiguous_tree import NonAmbiguousTrees, NonAmbiguousTree

from .root_system.all import *
from .sf.all import *
Expand Down
13 changes: 9 additions & 4 deletions src/sage/combinat/non_ambiguous_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,10 +1276,15 @@ def __call__(self, size=None, tree=None, policy=None):
return NonAmbiguousTrees_all(policy)
raise ValueError, "Invalide argument for non-ambiguous tee Factory."

def add_constraints(self, cons, (args, opts)):
r'''
'''
return cons+args
def add_constraints(self, cons, args_opts):
r"""
This function permit to add some enumeration constraint to the
factory. The factory make a family using the given constraints.
:meth:`SetFactory.add_constraints<.set_factories.SetFactory.add_constraints>`.
"""
args, opts = args_opts
return cons + args

@lazy_attribute
def _default_policy(self):
Expand Down

0 comments on commit b7f9e63

Please sign in to comment.