Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To See the Graph?! #147

Open
emomeni opened this issue May 18, 2018 · 1 comment
Open

How To See the Graph?! #147

emomeni opened this issue May 18, 2018 · 1 comment

Comments

@emomeni
Copy link

emomeni commented May 18, 2018

Hi,
I'm trying to have a graphical model of this:

In [1]: %load_ext gvmagic

In [2]: import pyeda

In [3]: from pyeda.inter import *

In [4]: a, b, c = map(bddvar, 'abc')

In [5]: f = a & b | a & c | b & c

In [6]: %dotobj f

In [7]: f.to_dot()

Out[7]: 'graph BDD { n140390891948072 [label=0,shape=box]; n140390892027576 [label=1,shape=box]; n140390840874880 [label="c",shape=circle]; n140390840893680 [label="b",shape=circle]; n140390840906304 [label="b",shape=circle]; n140390840906248 [label="a",shape=circle]; n140390840874880 -- n140390891948072 [label=0,style=dashed]; n140390840874880 -- n140390892027576 [label=1]; n140390840893680 -- n140390891948072 [label=0,style=dashed]; n140390840893680 -- n140390840874880 [label=1]; n140390840906304 -- n140390840874880 [label=0,style=dashed]; n140390840906304 -- n140390892027576 [label=1]; n140390840906248 -- n140390840893680 [label=0,style=dashed]; n140390840906248 -- n140390840906304 [label=1]; }'

this is the example that is available in pyeda documentation, but i didn't see any way to importing this code to jpg/png files!

anyone can help me?
Apparently my graph is now made, but how do I see it? There are no instructions for that on the website

@emomeni
Copy link
Author

emomeni commented Sep 20, 2018

Any Idea?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant