[Lemon-devel] Naming question again

Kovács Péter kpeter at inf.elte.hu
Thu Apr 3 15:30:35 CEST 2008


Hi,

 > But what if there is no separate DigraphToEps?
 >
 > Should we use edgeColor()? Or also use acrColor() as an alias?

I suggest using both names.

However it is a bit misleading since we can use ArcIt and EdgeIt for an 
undirected graph, but they are not the same.

Peter


Alpár Jüttner írta:
>> However as we have DigraphCopy, GraphCopy, and BpGraphCopy, we should
>> have DigraphToEps, GraphToEps, and BpGraphToEps.
> 
> I would like to avoid this. Mainly because these tools would have the
> same functionality and this kind of separation would probably lead to a
> lot of duplication in the code.
> Additionally, sometimes it is useful to draw a directed graph az
> undirected. In theory it can be done, with the UndirGraphAdaptor (I
> don't know how it will be called in the new version), but the Drawer
> support this functionality natively without any extra effort, and also
> I'm a bit concerned about whether the undirected map would be seamlessly
> usable here when wrappers are in used.
> 
>>  > How to call a function setting the color of the edges/arcs?
>>  > edgeColor() of arcColor()?
>>
>> I prefer arcColor() for DigraphToEps and edgeColor() for GraphToEps (or
>> both names for both cases).
> 
> But what if there is no separate DigraphToEps?
> 
> Should we use edgeColor()? Or also use acrColor() as an alias?
> Technically, it is not a problems, and we can also group these aliases
> together in the documentation, so that won't mess it up too much.
> 
> Regards,
> Alpar
> 
> 




More information about the Lemon-devel mailing list