Features for testing the presence of graph generator programs benzene, buckygen, plantri - Packages and Features

Skip to content
Back to top
View this page
Edit this page

# Features for testing the presence of graph generator programs `benzene`, `buckygen`, `plantri`

class sage.features.graph_generators.Benzene(*args, **kwds)

  Bases: `Executable`

  A `Feature` which checks for the benzene binary.

  EXAMPLES:

  Sage

      sage: from sage.features.graph_generators import Benzene
      sage: Benzene().is_present()  # optional - benzene
      FeatureTestResult('benzene', True)

  Python

      >>> from sage.all import *
      >>> from sage.features.graph_generators import Benzene
      >>> Benzene().is_present()  # optional - benzene
      FeatureTestResult('benzene', True)

  is_functional()

    Check whether `benzene` works on trivial input.

    EXAMPLES:

    Sage

        sage: from sage.features.graph_generators import Benzene
        sage: Benzene().is_functional()  # optional - benzene
        FeatureTestResult('benzene', True)

    Python

        >>> from sage.all import *
        >>> from sage.features.graph_generators import Benzene
        >>> Benzene().is_functional()  # optional - benzene
        FeatureTestResult('benzene', True)

class sage.features.graph_generators.Buckygen(*args, **kwds)

  Bases: `Executable`

  A `Feature` which checks for the buckygen binary.

  EXAMPLES:

  Sage

      sage: from sage.features.graph_generators import Buckygen
      sage: Buckygen().is_present()  # optional - buckygen
      FeatureTestResult('buckygen', True)

  Python

      >>> from sage.all import *
      >>> from sage.features.graph_generators import Buckygen
      >>> Buckygen().is_present()  # optional - buckygen
      FeatureTestResult('buckygen', True)

  is_functional()

    Check whether `buckygen` works on trivial input.

    EXAMPLES:

    Sage

        sage: from sage.features.graph_generators import Buckygen
        sage: Buckygen().is_functional()  # optional - buckygen
        FeatureTestResult('buckygen', True)

    Python

        >>> from sage.all import *
        >>> from sage.features.graph_generators import Buckygen
        >>> Buckygen().is_functional()  # optional - buckygen
        FeatureTestResult('buckygen', True)

class sage.features.graph_generators.Plantri(*args, **kwds)

  Bases: `Executable`

  A `Feature` which checks for the plantri binary.

  EXAMPLES:

  Sage

      sage: from sage.features.graph_generators import Plantri
      sage: Plantri().is_present()  # optional - plantri
      FeatureTestResult('plantri', True)

  Python

      >>> from sage.all import *
      >>> from sage.features.graph_generators import Plantri
      >>> Plantri().is_present()  # optional - plantri
      FeatureTestResult('plantri', True)

  is_functional()

    Check whether `plantri` works on trivial input.

    EXAMPLES:

    Sage

        sage: from sage.features.graph_generators import Plantri
        sage: Plantri().is_functional()  # optional - plantri
        FeatureTestResult('plantri', True)

    Python

        >>> from sage.all import *
        >>> from sage.features.graph_generators import Plantri
        >>> Plantri().is_functional()  # optional - plantri
        FeatureTestResult('plantri', True)

sage.features.graph_generators.all_features()