create_PN: Create Petri Net

Description Usage Arguments Examples

View source: R/create_PN.R

Description

Function to create a petri net by specificing a set of places, transitions, flows and a marking.

Usage

1

Arguments

places

A vector of unique places.

transitions

A vector of unique transitions.

flows

A data.frame of flows, with columns named "from" and "to".

marking

The names of the places to be marked.

Examples

1
2
3
4
create_PN("place_1",
			"transition_1",
			data.frame(from = "place_1",to = "transition_1"),
			marking = "place_1")

gertjanssenswillen/petrinetR documentation built on Aug. 1, 2019, 12:55 p.m.