#include <petrinet.h>
Collaboration diagram for PNapi::Arc:

Class to represent arcs of Petri nets. An arc written as a tupel (n1,n2) has n1 as source and n2 as target.
Definition at line 269 of file petrinet.h.
Public Member Functions | |
| virtual | ~Arc () |
| destructor | |
Private Member Functions | |
| void | mirror () |
| swaps source and target node of the arc | |
| string | output_dot (bool draw_interface=true) const |
| DOT-output of the arc (used by PetriNet::dotOut()). | |
| Arc (Node *source, Node *target, unsigned int weight=1) | |
| create an arc with a given weight | |
Private Attributes | |
| Node * | source |
| source node of the arc | |
| Node * | target |
| target node of the arc | |
| unsigned int | weight |
| weight of the arc (experimental) | |
Friends | |
| class | PetriNet |
| class PetriNet is allowed to access the privates of class Arc | |
1.5.2