[Lemon-devel] Naming question again

Alpár Jüttner alpar at cs.elte.hu
Thu Apr 3 09:36:00 CEST 2008


> 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


> 
> Regards,
> Peter
> 
> 
> Alpár Jüttner írta:
> > Hi,
> > 
> > I started to port graph_to_eps.h and I came across the following
> > problem.
> > 
> > The question is what to do is a 'graph' can mean either a directed or an
> > undirected graph? For example should it be called as graphToEps() or
> > digraphToEps()? There is a similar question with arc/edge. How to call a
> > function setting the color of the edges/arcs? edgeColor() of arcColor()?
> > 
> > Personally, I would use graph and edge in these situations, but what is
> > your opinion?
> > 
> > Another option is to use both as an alias (at least for the member
> > function).
> > 
> > Regards,
> > Alpar
> > 
> > 
> 
> 
> _______________________________________________
> Lemon-devel mailing list
> Lemon-devel at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-devel




More information about the Lemon-devel mailing list