[Tcl/Tk Utilities] <graph> addedge <tail> <head> using node handles takes wrong head
Ported Issue from Mantis Original ID: 2504 Referenced attachment(s) only available in original Mantis DB Reported By: csanchezdll
SEVERITY: IMPORTANT Submitted: 2014-12-09 13:03:38
DESCRIPTION
There is a typo in tcldot-graphcmd.c, making head = tail when adding edges using node handle for both nodes. Workaround is to use node names.
STEPS TO REPRODUCE
package require Tcldot
set g [dotnew graph]
set n0 [$g addnode]
set n1 [$g addnode]
$g addedge $n0 $n1
Resulting edge is n0 -> n0
ADDITIONAL INFORMATION
Patch over 2.38 attached and pull request on GitHub created.
Edited by Matthew Fernandez