Kappa-Dev / KappaTools

Tool suite for kappa models. Documentation and binaries can be found in the release section. Try it online at
http://kappalanguage.org/
GNU Lesser General Public License v3.0
112 stars 41 forks source link

How to test the existence of an agent with a given ID? #653

Closed jonathan-laurent closed 1 year ago

jonathan-laurent commented 1 year ago

Is there a simple way to test whether or not an agent with a given ID is present in a mixture?

I looked at Edges.mli and the only thing I see is val is_agent : Agent.t -> t -> bool where Agent.t is a pair of an agent ID and a type ID. Note that most functions in Edges.mli work with Agent IDs and not with the Agent.t type.

I cannot use this function because the code I am working with does not have access to the type of the agent.

I suggest adding: val is_agent_id: int -> t -> bool to the API.