I have a graph with different clusters. Basically I want to pair different nodes i.e. show somehow that different nodes have special relationship. So I decided to use clusters so that the nodes appear in a rectangle.
The problem is that a node can be in relationship with more than one node i.e. it could be in different clusters. But I have not found out a way to insert a node in two clusters.
I have the following code:
digraph G {rankdir="LR";
node [fontname = "font-awesome"];
subgraph cluster3 {
4 -> 5 [id="4t5",color="#717070",arrowsize=.5];
8 -> 4[id="8t4",color="#717070",arrowsize=.5];
subgraph cluster31{
4 [id=4,fillcolor="#F5BDA2", shape=rect;label=<<TABLE BORDER="0">
<TR><TD>1:12</TD></TR>
</TABLE>>, style="filled",fontsize=6,fixedsize=true,width=0.5,height=0.2,shape=Mrecord];
5 [id=5,fillcolor="#F5BDA2", shape=ellipse;label=<<TABLE BORDER="0">
<TR><TD ID="32e" HREF=" ">1:13</TD></TR>
</TABLE>>, style="filled"];
}
subgraph cluster32{
8 [id=8,fillcolor="#F5BDA2", shape=rect;label=<<TABLE BORDER="0">
<TR><TD>1:19</TD></TR>
</TABLE>>, style="filled",shape=box];
5 [id=5,fillcolor="#F5BDA2", shape=ellipse;label=<<TABLE BORDER="0">
<TR><TD ID="32e" HREF=" ">1:13</TD></TR>
</TABLE>>, style="filled"];
}
}
}
Is there a way or a hack or another way to accomplish this idea?