Skip to content

Commit bb41216

Browse files
committed
Added suggestions from code review
1 parent e129160 commit bb41216

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

src/sage/topology/simplicial_complex.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4852,11 +4852,15 @@ def bigraded_betti_numbers(self, base_ring=ZZ, verbose=False):
48524852
48534853
INPUT:
48544854
4855-
- ``base_ring`` -- (optional, default ``ZZ``) the base ring used
4855+
- ``base_ring`` -- (default: ``ZZ``) the base ring used
48564856
when computing homology
4857-
- ``verbose`` -- (optional, default ``False``) if ``True``, print
4858-
messages during the computation, which indicate in which subcomplexes
4859-
non-trivial homologies appear
4857+
- ``verbose`` -- (default: ``False``) if ``True``, print
4858+
messages during the computation, which indicate in which
4859+
subcomplexes non-trivial homologies appear
4860+
4861+
.. NOTE::
4862+
4863+
If ``verbose`` is ``True``, then caching is avoided.
48604864
48614865
.. SEEALSO::
48624866
@@ -4940,11 +4944,15 @@ def bigraded_betti_number(self, a, b, base_ring=ZZ, verbose=False):
49404944
49414945
INPUT:
49424946
4943-
- ``base_ring`` -- (optional, default ``ZZ``) the base ring used
4947+
- ``base_ring`` -- (default: ``ZZ``) the base ring used
49444948
when computing homology
4945-
- ``verbose`` -- (optional, default ``False``) if ``True``, print
4946-
messages during the computation, which indicate in which subcomplexes
4947-
non-trivial homologies appear
4949+
- ``verbose`` -- (default: ``False``) if ``True``, print
4950+
messages during the computation, which indicate in which
4951+
subcomplexes non-trivial homologies appear
4952+
4953+
.. NOTE::
4954+
4955+
If ``verbose`` is ``True``, then caching is avoided.
49484956
49494957
EXAMPLES::
49504958
@@ -4966,9 +4974,12 @@ def bigraded_betti_number(self, a, b, base_ring=ZZ, verbose=False):
49664974
0
49674975
sage: Y = SimplicialComplex([[1,2,3],[1,2,4],[3,5],[4,5]])
49684976
sage: Y.bigraded_betti_number(-1, 4, verbose=True)
4969-
Non-trivial homology Z in dimension 0 of the full subcomplex generated by a set of vertices (1, 5)
4970-
Non-trivial homology Z in dimension 0 of the full subcomplex generated by a set of vertices (2, 5)
4971-
Non-trivial homology Z in dimension 0 of the full subcomplex generated by a set of vertices (3, 4)
4977+
Non-trivial homology Z in dimension 0 of the full subcomplex
4978+
generated by a set of vertices (1, 5)
4979+
Non-trivial homology Z in dimension 0 of the full subcomplex
4980+
generated by a set of vertices (2, 5)
4981+
Non-trivial homology Z in dimension 0 of the full subcomplex
4982+
generated by a set of vertices (3, 4)
49724983
3
49734984
"""
49744985
if b % 2:

0 commit comments

Comments
 (0)