Skip to main content

passagemath: Generating planar graphs with plantri and fullgen

Project description

About SageMath

“Creating a Viable Open Source Alternative to

Magma, Maple, Mathematica, and MATLAB”

Copyright (C) 2005-2024 The Sage Development Team

https://www.sagemath.org

SageMath fully supports all major Linux distributions, recent versions of macOS, and Windows (Windows Subsystem for Linux).

See https://doc.sagemath.org/html/en/installation/index.html for general installation instructions.

About this pip-installable distribution package

This pip-installable distribution passagemath-plantri provides an interface to plantri.

What is included

  • Binary wheels on PyPI contain prebuilt copies of plantri executables.

Examples

Using plantri programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-plantri" sage -sh -c plantri

Finding the installation location of a plantri program:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-plantri[test]" ipython

In [1]: from sage.features.graph_generators import Plantri

In [2]: Plantri().absolute_filename()
Out[2]: '.../bin/plantri'

Using the Python interface:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-plantri[test]" ipython

In [1]: from sage.all__sagemath_plantri import *

In [2]: len(list(graphs.planar_graphs(4, minimum_edges=4)))
Out[2]: 4

In [3]: gen = graphs.triangulations(6, only_eulerian=True); g = next(gen)

In [4]: g.is_isomorphic(graphs.OctahedralGraph())
Out[4]: True

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

passagemath_plantri-10.5.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file passagemath_plantri-10.5.1.tar.gz.

File metadata

  • Download URL: passagemath_plantri-10.5.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for passagemath_plantri-10.5.1.tar.gz
Algorithm Hash digest
SHA256 a35f08035d6e13d1a4c013adab4ed3cd90e74c8e3128d7ae0e9be52ba753e1a2
MD5 5fc4226b8d2af9261bba0b3b64e03602
BLAKE2b-256 6fc1fc1a4f824e901638a8704f6c77c124de2a07662fa7707a08fb7c17050398

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page