sagemath_benzene: Generate fusene and benzenoid graphs with benzene¶
This pip-installable distribution passagemath-benzene
provides an interface
to benzene, a program for the efficient generation of all nonisomorphic
fusenes and benzenoids with a given number of faces.
What is included¶
Binary wheels on PyPI contain prebuilt copies of the benzene executable.
Examples¶
Using the benzene program on the command line:
$ pipx run --pip-args="--prefer-binary" --spec "passagemath-benzene[test]" sage -sh -c benzene
Finding the installation location of the benzene program:
$ pipx run --pip-args="--prefer-binary" --spec "passagemath-benzene[test]" ipython
In [1]: from sage.features.graph_generators import Benzene
In [2]: Benzene().absolute_filename()
Out[2]: '.../bin/benzene'
Using the Python interface:
$ pipx run --pip-args="--prefer-binary" --spec "passagemath-benzene[test]" ipython
In [1]: from sage.all__sagemath_benzene import *
In [2]: len(list(graphs.fusenes(9, benzenoids=True)))
Out[2]: 6505
Type¶
optional
Dependencies¶
$(PYTHON)
$(PYTHON_TOOLCHAIN)
benzene: Generate fusenes and benzenoids with a given number of faces
cython: C-Extensions for Python, an optimizing static compiler
mpc: Arithmetic of complex numbers with arbitrarily high precision and correct rounding
mpfr: Multiple-precision floating-point computations with correct rounding
sagemath_categories: Sage categories, basic rings, polynomials, functions
sagemath_objects: Sage objects, elements, parents, categories, coercion, metaclasses
Version Information¶
package-version.txt:
10.6.29
version_requirements.txt:
passagemath-benzene ~= 10.6.29.0
Installation commands¶
$ pip install passagemath-benzene~=10.6.29.0
$ sage -i sagemath_benzene
However, these system packages will not be used for building Sage
because spkg-configure.m4
has not been written for this package;
see upstream Issue #27330 for more information.