graph PerceptronBase {
rankdir=TD;
bgcolor="transparent"
node [shape=circle, fontcolor = "#ffffff", color = "#ffffff"]
edge [color = "#ffffff"]
subgraph cluster_input {
fontcolor="white";
node [style=filled, fillcolor="red"];
X0 [label="0,0"]; X1 [label="0,1"]; X2 [label="0,2"];
X3 [label="1,0"]; X4 [label="1,1"]; X5 [label="1,2"];
X6 [label="2,0"]; X7 [label="2,1"]; X8 [label="2,2"];
}
node [style=filled, fillcolor="blue"];
Neuron [label="∑"];
X0 -- Neuron; X1 -- Neuron; X2 -- Neuron;
X3 -- Neuron; X4 -- Neuron; X5 -- Neuron;
X6 -- Neuron; X7 -- Neuron; X8 -- Neuron;
}