Advertisement
jordancurve

"COVFEFE" Markov chain in Graphviz DOT language

Dec 2nd, 2017
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. /*
  2. "COVFEFE" Markov chain in Graphviz DOT language, to go along with
  3. https://twitter.com/jordancurve/status/936984541557911553
  4.  
  5. To create the corresponding PNG file, install Graphviz, copy this
  6. paste to the file "covfefe.dot", then run the following command:
  7.  
  8. dot -T png -o covfefe.png covfefe.dot
  9. */
  10. digraph G {
  11. X [label="X (start here)"];
  12. X -> C [label="1/26"]; X -> X [label="25/26"];
  13. C -> O [label="1/26"]; C -> C [label="1/26"]; C -> X [label="24/26"];
  14. O -> V [label="1/26"]; O -> C [label="1/26"]; O -> X [label="24/26"];
  15. V -> F1 [label="1/26"]; V -> C [label="1/26"]; V -> X [label="24/26"];
  16. F1 -> E1 [label="1/26"]; F1 -> C [label="1/26"]; F1 -> X [label="24/26"];
  17. E1 -> F2 [label="1/26"]; E1 -> C [label="1/26"]; E1 -> X [label="24/26"];
  18. F2 -> E2 [label="1/26"]; F2 -> C [label="1/26"]; F2 -> X [label="24/26"];
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement