R/preset.R

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()
}
gertjanssenswillen/petrinetR documentation built on Aug. 1, 2019, 12:55 p.m.