Reputation: 1329
I was looking for a away to add more than one link to a label for svg export, but I can't have more than one edge.
Right now I have something like this:
Node1 -> Node2 [ href="some.resource.xyz", label="Resource\nAdditionalInfo" ]
What I need though is to have something like this:
Node1 -> Node2 [
label="Resource\n # href to "some.resource.xyz"
Additional Information" # href to some.additional.info
]
Upvotes: 6
Views: 1341
Reputation: 2617
Use HTML label and define a table with two cell with different values for HREF attribute
Example:
digraph {
A->B
B[label=<<table>
<tr><td href="http://google.com">Google</td></tr>
<tr><td href="http://bing.com">Bing</td></tr>
</table>>]
}
Upvotes: 6