0.1.7 • Published 9 years ago

exemd-pn v0.1.7

Weekly downloads
-
License
BSD
Repository
-
Last release
9 years ago

exemd-pn NPM version

Exemd driver for petri nets graphs

Install globally with npm:

npm i -g exemd-pn

Additional instructions

Install dot or graphviz before this plugin.

Short help

connect connects an array of named nodes to a single node. One or more stars * after the name of the node mean that one or more tokens are displayed on the node:

```{pn !}
connect(["invoked", "p*"] ,"x_has_value")
```

Will generate this:

npm.io

You can also add external labels to nodes with add-x-label, such as in:

```{pn !}
add-x-label("p1*", "p1")
add-x-label("p2*", "p2")
add-x-label("p3*", "p3")
connect(["p1*", "p2*"] ,"p3")
```

which generates:

npm.io

You can also have an array of node names as a destination of a transition:

```{pn !}
connect(["p0*", "p*"] ,["p1*", "p2"])
connect(["p1*", "p2"] ,"p3")
```

which generates:

npm.io

Author

  • Vittorio Zaccaria

License

Copyright (c) 2015 Vittorio Zaccaria Released under the license


This file was generated by verb-cli on March 20, 2015.

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago