[prev in list] [next in list] [prev in thread] [next in thread] 

List:       graphviz-interest
Subject:    Re: [graphviz-interest] i want to highlight an entry in mrecord to
From:       "Emden R. Gansner" <erg () research ! att ! com>
Date:       2011-12-02 15:21:37
Message-ID: 4ED8ED01.7070501 () research ! att ! com
[Download RAW message or body]

On 12/2/11 12:11 AM, jack sparrow wrote:
> ok, one more question. how to identify each<tr>  entry, just like<f0>
> in below code.
>
> "struct_one" [
> label = "<f0>  int one |<f1>  int two"
> shape = mrecord
> ];
>
> basically, i want to draw arrows between<tr>  entries. Is that possible ?
> i tried adding<f0>  like entries, it doesn't seem to be working.
The <f0> in the record syntax are port names, so you want to use port names in the HTML-like labels.
This is done using the PORT attribute. The equivalent to what you have above is

"struct_one" [
shape=none
label=<
<TABLE STYLE="rounded" CELLBORDER="0" COLUMNS="*">
<TR><TD PORT="f0">int one</TD><TD PORT="f1">int two</TD></TR>
</TABLE>>
]

Further information can be found at http://www.graphviz.org/content/node-shapes#html

     Emden

_______________________________________________
graphviz-interest@research.att.com
https://mailman.research.att.com/mailman/listinfo/graphviz-interest
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic