From 9f4fae1437cb469eb653a0fa75d82969c3f7c419 Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Sun, 23 Feb 2020 10:14:32 +0100 Subject: [PATCH] example.org: Illustrate signed interaction graphs. --- example/dots/exampledpQygl.svg | 58 ++++++++++++++++++++++++++++++++++ example/example.org | 20 ++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 example/dots/exampledpQygl.svg diff --git a/example/dots/exampledpQygl.svg b/example/dots/exampledpQygl.svg new file mode 100644 index 0000000..8e594e7 --- /dev/null +++ b/example/dots/exampledpQygl.svg @@ -0,0 +1,58 @@ + + + + + + +G + + + +node0 + +c + + + +node0->node0 + +-1 + + + +node1 + +b + + + +node0->node1 + + +1 + + + +node2 + +a + + + +node1->node2 + + +1 + + + +node2->node1 + + +0 + + + diff --git a/example/example.org b/example/example.org index cd9222b..2746053 100644 --- a/example/example.org +++ b/example/example.org @@ -340,6 +340,26 @@ tab [[file:dots/examplejTo8XT.svg]] :END: + Here's the signed interaction graph of this network: + + #+NAME: simple-bn-sig + #+BEGIN_SRC racket :results silent :var simple-bn=munch-table(simple-bn) +(dotit (build-boolean-signed-interaction-graph (unorg simple-bn))) + #+END_SRC + + #+BEGIN_SRC dot :file dots/exampledpQygl.svg :results raw drawer :cmd sfdp :noweb yes +<> + #+END_SRC + + #+RESULTS: + :RESULTS: + [[file:dots/exampledpQygl.svg]] + :END: + + For the interaction a \to b, note indeed that when c is #f, b is + always #f (positive interaction). On the other hand, when c is #t, + b becomes (not a) (negative interaction). Therefore, the influence + of a on b is neither activating nor inhibiting. * Local Variables :noexport: # Local Variables: