Commit graph

448 commits

Author SHA1 Message Date
Sergiu Ivanov
736f210c41 generic: Make dds-step-one fall back to dds-step-one-annotated. 2020-03-02 12:11:09 +01:00
Sergiu Ivanov
db88987c13 example: Show how to apply reaction systems. 2020-03-01 21:14:18 +01:00
Sergiu Ivanov
77c0106ea2 rs: Add some functions for showing RS as Org tables.
Also add an example to example.org.
2020-03-01 21:10:01 +01:00
Sergiu Ivanov
0051380f2b rs: Add a test for ht-str-triples->rs. 2020-03-01 20:46:06 +01:00
Sergiu Ivanov
afc043d22d rs: Fix the introduction to the section on Org-mode interop. 2020-03-01 20:43:33 +01:00
Sergiu Ivanov
c33cce731f rs: Convert to untyped racket with contracts. 2020-03-01 20:41:11 +01:00
Sergiu Ivanov
d2121bd5e6 rs: Add unorg-rs and showcase it in example.org. 2020-03-01 20:26:16 +01:00
Sergiu Ivanov
02d5384674 rs: Switch to #lang racket, but keep the types where they work. 2020-03-01 20:25:01 +01:00
Sergiu Ivanov
f16747d157 rs: Add section "Org-mode interaction". 2020-03-01 20:20:16 +01:00
Sergiu Ivanov
a77261c424 rs: Make reaction transparent. 2020-03-01 19:54:53 +01:00
Sergiu Ivanov
5c13b468e3 rs: Add apply-rs. 2020-03-01 19:51:53 +01:00
Sergiu Ivanov
86256cd47e rs: Add union-products. 2020-03-01 19:47:38 +01:00
Sergiu Ivanov
3732d4897e rs,list-enabled: Made the type signature more explicit. 2020-03-01 19:24:32 +01:00
Sergiu Ivanov
d7e189eef0 rs: Add list-enabled. 2020-03-01 19:20:24 +01:00
Sergiu Ivanov
0cb57196c5 rs: Add ReactionSystem. 2020-03-01 19:19:58 +01:00
Sergiu Ivanov
f62592574b rs: Export the Species type. 2020-03-01 19:07:16 +01:00
Sergiu Ivanov
bb247d9eb8 rs: Start. 2020-03-01 19:05:28 +01:00
Sergiu Ivanov
007c5b96bf example: Show what happens when multiple modalities cause the same state transition. 2020-03-01 18:01:53 +01:00
Sergiu Ivanov
9143f6f9fc networks: Add pretty-print-modalities and use it for state graphs. 2020-03-01 17:57:58 +01:00
Sergiu Ivanov
1fa342c2ad generic: Make fallback-dds-build-state-graph-edges collect duplicate edges. 2020-03-01 17:40:36 +01:00
Sergiu Ivanov
b2f686cdaa utils: Add collect-by-key. 2020-03-01 16:53:17 +01:00
Sergiu Ivanov
02d564a374 example: Add an example on printing annotated state graphs for networks. 2020-03-01 15:22:11 +01:00
Sergiu Ivanov
a3f5d4d2ba networks, pretty-print-state-graph-with: Use pretty-print-set for edges. 2020-03-01 15:20:44 +01:00
Sergiu Ivanov
3f24a5be8b utils: Add pretty-print-set. 2020-03-01 15:15:52 +01:00
Sergiu Ivanov
1e524f167c utils: Add update-graph. 2020-02-29 17:21:56 +01:00
Sergiu Ivanov
6e5c73bcb2 networks: Add build-full-boolean-state-graph-annotated. 2020-02-28 21:56:42 +01:00
Sergiu Ivanov
2ece2e76ee networks: Re-export dds-build-state-graph-annotated and dds-build-n-step-state-graph-annotated. 2020-02-28 21:46:25 +01:00
Sergiu Ivanov
160713b56b generic: Add dds-build-state-graph-annotated and dds-build-n-step-state-graph-annotated. 2020-02-28 21:45:54 +01:00
Sergiu Ivanov
601e8ed8b3 generic: Generalise fallback-dds-build-state-graph to work with annotations.
This function is now called fallback-dds-build-state-graph-edges and
it is parameterised by a function which produces the next states with
annotations (like dds-one-step-annotated).  The functions
dds-build-state-graph and dds-build-n-step-state-graph now fall back
to calling fallback-dds-build-state-graph-edges, passing it the
function dummy-annotated-dds-step-one to add a 'dummy annotation to
each new state produced.
2020-02-28 21:39:02 +01:00
Sergiu Ivanov
fd290a049e networks: Make the pretty printing procedures sort the keys. 2020-02-26 21:27:02 +01:00
Sergiu Ivanov
e3a04cb765 example.org: Add examples of state graphs. 2020-02-26 21:17:11 +01:00
Sergiu Ivanov
5f4cb917bc networks-tests: Fix the usage of stb. 2020-02-26 21:05:06 +01:00
Sergiu Ivanov
63b676b1ba networks: Remove an extra call to booleanize-state. 2020-02-26 21:02:44 +01:00
Sergiu Ivanov
b53639839f networks: Add booleanize-state and make stb a shortcut for it. 2020-02-26 20:47:38 +01:00
Sergiu Ivanov
2022e0187b networks: Add make-state-booleanize and stb. 2020-02-26 15:51:25 +01:00
Sergiu Ivanov
018e3c6976 utils: Generalise unstringify-pairs. 2020-02-26 15:51:00 +01:00
Sergiu Ivanov
83a87acfc5 utils: Generalise unstringify-pairs. 2020-02-23 21:29:00 +01:00
Sergiu Ivanov
9e0db04035 networks: Make nn a shortcut form network-form->network.
It used to be for make-network-from-forms, but nn is more practical in
my Org-mode setup as of now.
2020-02-23 20:28:11 +01:00
Sergiu Ivanov
b0acbadadd networks: Add build-all-boolean-states and build-full-boolean-state-graph. 2020-02-23 20:13:37 +01:00
Sergiu Ivanov
f88bc0d01b networks: Add further infrastructure for pretty-printing networks. 2020-02-23 19:44:55 +01:00
Sergiu Ivanov
3a873ab256 networks: Add pretty-print-state. 2020-02-23 19:24:53 +01:00
Sergiu Ivanov
4063a21bce utils: Add update-vertices/unweighted. 2020-02-23 19:17:16 +01:00
Sergiu Ivanov
39575f39c2 generic: Add dds-build-state-graph and dds-build-n-step-state-graph.
Also provide a common fallback implementation.
2020-02-23 18:51:57 +01:00
Sergiu Ivanov
ef76e143f2 network-tests: Factor out a convenient set of states. 2020-02-23 15:09:02 +01:00
Sergiu Ivanov
a26ce5aebc generic: Say which methods have no fallback. 2020-02-23 15:05:06 +01:00
Sergiu Ivanov
e7eb1fb09e networks: Implement dds-step-one-annotated. 2020-02-23 14:11:55 +01:00
Sergiu Ivanov
afb97eae7c generic: Add dds-step-one-annotated. 2020-02-23 14:11:38 +01:00
Sergiu Ivanov
5969595bed networks: Add and use modality? 2020-02-23 13:53:02 +01:00
Sergiu Ivanov
95d248c548 networks, generic: Make all set/c arguments 'dont-care. 2020-02-23 13:38:18 +01:00
Sergiu Ivanov
fea113c1dd generic: Fix fallback-dds-step. 2020-02-23 13:36:49 +01:00