-
-
Notifications
You must be signed in to change notification settings - Fork 404
/
mcqd.py
45 lines (35 loc) · 1.36 KB
/
mcqd.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# sage_setup: distribution = sagemath-environment
r"""
Features for testing the presence of ``mcqd``
"""
# *****************************************************************************
# Copyright (C) 2021 Matthias Koeppe
#
# Distributed under the terms of the GNU General Public License (GPL)
# as published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
# https://www.gnu.org/licenses/
# *****************************************************************************
from . import PythonModule
from .join_feature import JoinFeature
class Mcqd(JoinFeature):
r"""
A :class:`~sage.features.Feature` describing the presence of the :mod:`~sage.graphs.mcqd` module,
which is the SageMath interface to the :ref:`mcqd <spkg_mcqd>` library
EXAMPLES::
sage: from sage.features.mcqd import Mcqd
sage: Mcqd().is_present() # optional - mcqd
FeatureTestResult('mcqd', True)
"""
def __init__(self):
"""
TESTS::
sage: from sage.features.mcqd import Mcqd
sage: isinstance(Mcqd(), Mcqd)
True
"""
JoinFeature.__init__(self, 'mcqd',
[PythonModule('sage.graphs.mcqd',
spkg='sagemath_mcqd')])
def all_features():
return [Mcqd()]