Learn R Programming

petrinetR (version 0.2.0)

create_PN: Create Petri Net

Description

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

Usage

create_PN(places, transitions, flows, marking)

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

Run this code
# NOT RUN {
create_PN("place_1",
			"transition_1",
			data.frame(from = "place_1",to = "transition_1"),
			marking = "place_1")

# }

Run the code above in your browser using DataLab