Skip to content

Instantly share code, notes, and snippets.

@nomeata
Created May 4, 2017 13:37
Show Gist options
  • Save nomeata/9c8249246aaffddc70c276468ee10477 to your computer and use it in GitHub Desktop.
Save nomeata/9c8249246aaffddc70c276468ee10477 to your computer and use it in GitHub Desktop.
// The source for the graph in https://math.stackexchange.com/q/2265499/53195
digraph w3markov {
layout = neato;
epsilon = 0.0001;
edge [len = 0.8];
node [label=""];
node [width=0.2];
node [height=0.2];
node [fixedsize=true];
node [style=filled];
node [shape=circle];
node [color=red];
M3;
M4;
MS2;
MSS1;
node [color=blue];
S3;
S4;
SM2;
SMS1;
SS2;
SSM1;
SSS1;
SSS1 -> SSS1 ;
SSS1 -> SS2 ;
SS2 -> S3 ;
SS2 -> S4 ;
S3 -> MSS1 ;
S3 -> SSM1 ;
S4 -> SMS1 ;
S4 -> SSM1 ;
MSS1 -> SSS1 ;
MSS1 -> SS2 ;
SSM1 -> SMS1 ;
SSM1 -> SM2 ;
SMS1 -> MSS1 ;
SMS1 -> MS2 ;
MS2 -> S3 ;
MS2 -> S4 ;
SM2 -> M3 ;
SM2 -> M4 ;
M3 -> MSS1 ;
M3 -> SSM1 ;
M4 -> SMS1 ;
M4 -> SSM1 ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment