Defines functions pre_set

Documented in pre_set

#' @title Preset
#' @description Get the preset of a transition or place in a Petri Net
#' @param PN A Petri Net
#' @param node A place or transition in the petri net
#' @export pre_set

pre_set <- function(PN, node) {
	(PN$flows %>% filter(to == node))$from %>% return()

Try the petrinetR package in your browser

Any scripts or data that you put into this service are public.

petrinetR documentation built on May 1, 2019, 8:24 p.m.