The source code for the toDotR method in the graph package has the
following

 

E <- edgeL(G)

enms <- names(E)

nds <- nodes(G)

out <- paste(out, buildEdge( from=nds[ E[[i]]$edges[j] ],

         to=enms[i], optList, E[[i]][[ optList$edgeLabelField ]] ),
sep=" ")

 

I believe that the storage methanism for edges implies that 

enms[i]   is the from

and nds[ E[[i]]$edges[j] ] is the to

 

 

The implementor of the toDotR "fixed" this bug by putting "dir=back" on
every edge, but it seems like a better fix would have been to reverse to
and from.

 

Thanks

Michael Altmann

 

 

 


	[[alternative HTML version deleted]]

