For the record, I found the answer in
RTMetricNormalizer>>normalizeLineWidth:
see the exemple from the method:
---
|b es |
b := RTMondrian new.
b shape circle size: 20; color: Color red trans.
b nodes: Collection withAllSubclasses.
b shape line color: Color blue trans.
es := b edges connectToAll: #dependentClasses.
b layout force charge: -500.
b normalizer
edges: es;
normalizeLineWidth: [ :from :to |
| outgoingRef |
outgoingRef := (from methods flatCollect: [ :cm | cm literals
select: [ :l | l class == GlobalVariable ] ]) groupedBy: #value.
(outgoingRef keys includes: to)
ifTrue: [ (outgoingRef at: to) size ]
ifFalse: [ 0 ] ] min: 0.2 max: 20.
b
---
nicolas
On 05/11/2018 14:22, Nicolas Anquetil wrote:
> A question on normalizing edges in RTMondrian:
>
> I want to show the "strength" of the edges, computed according to some
> metric.
>
> How can I normalize for example the color of the edge to reflect this
> "strength" ?
>
> Or maybe, normalize the "boldness" of the edge ?
>
> nicolas
>
--
Nicolas Anquetil
RMod team -- Inria Lille
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev