@@ -207,9 +207,11 @@ julia> places(pn)
207207 Place(607.0, 266.0, 0)
208208```
209209"""
210- function petri_editor! (pn:: PetriNet ; screenshot:: Union{Nothing,String} = nothing )
210+ function petri_editor! (pn:: PetriNet ; screenshot:: Union{Nothing,String} = nothing ,
211+ critical_cycle:: Bool = false )
211212 sc = screenshot === nothing ? C_NULL : screenshot
212- ccall ((:petri_editor , libtpne), Bool, (Clonglong, Cstring), pn. handle, sc) || throw_error ()
213+ ccall ((:petri_editor , libtpne), Bool, (Clonglong, Cstring, Bool),
214+ pn. handle, sc, critical_cycle) || throw_error ()
213215end
214216
215217"""
@@ -241,9 +243,10 @@ Once presed ESCAPE key, the editor will quit and modifications applied on the du
241243while the original net is not modified.
242244Throw an exception if the Petri net handle is invalid.
243245"""
244- function petri_editor (pn:: PetriNet )
246+ function petri_editor (pn:: PetriNet ; critical_cycle :: Bool = false )
245247 pn1 = petri_net (pn)
246- ccall ((:petri_editor , libtpne), Bool, (Clonglong, Cstring), pn1. handle, C_NULL ) || throw_error ()
248+ ccall ((:petri_editor , libtpne), Bool, (Clonglong, Cstring, Bool),
249+ pn1. handle, C_NULL , critical_cycle) || throw_error ()
247250 return pn1
248251end
249252
0 commit comments