Python abstraction around Binary Decision Diagrams to implement Multivalued Decision Diagrams.
Project description
Py-MDD
Python abstraction around Binary Decision Diagrams to implement Multivalued Decision Diagrams.
Installation
If you just need to use py-mdd
, you can just run:
$ pip install mdd
For developers, note that this project uses the poetry python package/dependency management tool. Please familarize yourself with it and then run:
$ poetry install
Usage
interface = mdd.Interface(
inputs={
"x": [1, 2, 3],
"y": [6, 'w'],
"z": [7, True, 8],
},
output=[-1, 0, 1],
)
func = interface.constantly(-1)
assert func({'x': 1, 'y': 'w', 'z': 8}) == -1
The mdd
api centers around three DecisionDiagram
objects.
This object is a wrapper around a Binary Decision Diagram object (from dd).
Interfaces, Inputs, and Outputs
MDD Manipulations
- partial assigments.
- overrides.
- setting order.
- wrapping lifting a bdd.
Variables and Encodings
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
Built Distribution
File details
Details for the file mdd-0.1.1.tar.gz
.
File metadata
- Download URL: mdd-0.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.4.0-42-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a32f636ffd7406dc3b76b2f5fcf9624514031feecee383e4ffd840d0058a07f |
|
MD5 | 54bafc9c7e63bcccd6072193f6d56fa7 |
|
BLAKE2b-256 | 4b4b0fd17a3821590c19c7cfcc0c21b605d37a3982dbf9038ee66e3cfb931051 |
File details
Details for the file mdd-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: mdd-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.4.0-42-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60f502c67de2c205cf45f306ab9dcb26adb4cdf598fbfc11b84c8c1b50b89b31 |
|
MD5 | 3eccf114f5b90ad95e7b98080a4d536d |
|
BLAKE2b-256 | 8e6346be29495370c685487e83d5312d10eb47dd7fe525665347f43ce2d1c663 |