[Lemon-devel] Renaming basic classes

Alpár Jüttner alpar at cs.elte.hu
Sat Sep 15 19:53:08 CEST 2007


> > On the other hand I find the use of anode() and bnode() for
> > this purpose very misleading.
> In my point of view the source() and target() are more misleading than the 
> anode() and bnode(). 

Well, it is a matter of taste. In fact, it would be the best if we could
get rid of 'anode' and 'bnode'. This is another thing why I don't like
using these names for even more thing.

Im my previous mail I (re)suggested using of girl/boy or red/blue
instead of anode/bnode. What is your opinion on this? It would be still
strange for an egde of a non-bipartite graph, so then we should either
keep source/target or use first/second.

Another choice could be using just a and b (i.e. a() and b() would be
the function names, while the related classes would be A and B).  Or is
it too radical? (For me, it isn't.) Would do you think?

Alpar





More information about the Lemon-devel mailing list