[Lemon-devel] Renaming basic classes

Balazs Dezso deba at inf.elte.hu
Tue Sep 11 14:09:29 CEST 2007


Dear Developers,

> 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(). In addition, if we cast an edge to uedge then the source 
could be change. // g.source(e) != g.source(UEdge(e))

The boost library has undirected graphs (controlled by tag template 
parameters), but it has a little different meaning than lemon undirected 
graph. There are just unidrected edges and undirected edge property maps in 
the graph. The leda has a forall_inout_edges() function to use the graphs as 
undirected ones. And there is make_undirected() function which removes all 
self loops and it moves the splices the InEdge list of the node to the 
OutEdgeList. 

Eventually, we should finalize our renaming and redesign proposals asap. Could 
somebody summarize the ideas and naming suggestions? I think we should 
conclude in few days.

Balazs


On Monday 10 September 2007 12.32.21 Alpár Jüttner wrote:
> > The source() and target() functions could be changed in the undirected
> > graphs to first() and second(), or anode() and bnode().
>
> I do not support this. I agree that source() and target() of an
> undirected edge semms a bit strange for the first time, but they aren't
> really confusing.
> So it isn't worth introducing new function names for that (first() and
> second()). On the other hand I find the use of anode() and bnode() for
> this purpose very misleading.
>
> 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