I am trying to reproduce this figure using Mathematica. I am not even sure it is possible. Maybe Graph
approach can be used.
Here is my starting point.
greenRed =
Graphics[{Rectangle[{0, 0.5}, {17, 16}], Darker@Green,
Table[Rectangle[{0, i}, {9, i + 1}], {i, 1, 15, 1.5}], Red,
Table[Rectangle[{i + 9.5, 0.5}, {i + 10.5, 16}], {i, 0, 6, 1.5}]},
AspectRatio -> 1, PlotRangePadding -> None];
redGreen =
Graphics[{Rectangle[{0, 0.5}, {17, 16}], Red,
Table[Rectangle[{i + 0.5, 0.5}, {i + 1.5, 16}], {i, 0, 6, 1.5}],
Darker@Green,
Table[Rectangle[{8., i}, {17, i + 1}], {i, 1, 15, 1.5}]},
AspectRatio -> 1, PlotRangePadding -> None];
greenGreen =
Graphics[{Rectangle[{0, 0.5}, {17, 16}], Darker@Green,
Table[Rectangle[{0, i}, {17, i + 1}], {i, 1, 15, 1.5}]},
AspectRatio -> 1, PlotRangePadding -> None];
redRed = Graphics[{Rectangle[{0, 0.5}, {17, 16}], Red,
Table[Rectangle[{i + 0.5, 0.5}, {i + 1.5, 16}], {i, 0, 16, 1.5}]},
AspectRatio -> 1, PlotRangePadding -> None];
red = Graphics[{Rectangle[{0, 0.5}, {17, 16}], Red,
Table[Rectangle[{i + 0.5, 0.5}, {i + 1.5, 16}], {i, 0, 6, 1.5}],
White, Rectangle[{8, 0.5}, {17, 16}]}, AspectRatio -> 1];
green = Graphics[{Rectangle[{0, 0.5}, {17, 16}], Darker@Green,
Table[Rectangle[{0, i}, {9, i + 1}], {i, 1, 15, 1.5}], White,
Rectangle[{9, 0.5}, {17, 16}]}, AspectRatio -> 1];
mat={{0, 0, 1, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 0, 0, 0, 0}, {0,
0, 0, 1, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 1, 0, 1, 0, 1, 0}, {0, 0,
0, 0, 0, 1, 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 1, 0, 1}, {0, 0, 0,
0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0,
0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
AdjacencyGraph[mat,
VertexShape -> {1 -> greenRed, 2 -> redGreen, 3 -> green, 4 -> red,
5 -> red, 6 -> green, 7 -> greenRed, 8 -> greenGreen, 9 -> redRed,
10 -> redGreen}, VertexSize -> 0.5]
I don't know how to plot flow lines. Any suggestion?