[Lemon-devel] Naming question again

Alpár Jüttner alpar at cs.elte.hu
Wed Apr 2 12:01:18 CEST 2008


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





More information about the Lemon-devel mailing list