Dear all,
 
 Thanks for your reply. Here is the output of sessionInfo()
 
 > sessionInfo()
 R version 2.2.0, 2005-10-06, i686-pc-linux-gnu
 
 attached base packages:
 [1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
 [7] "base"
 
 And the code is like this
 ---------------------------------------------------------------------------------------------------
 ## illustrating Rgraphviz Bug for weighted edges
 ## Kaustubh Patil
 ## 21 December 2005
 
 library("Rgraphviz")
 
 # create a few nodes
 
 myNodes <- c("a","b","c")
 
 # create edges
 
 myEdges <- list(a=list(edges=c("b","c")),
                 b=list(edges=c("c")),
                 c=list(edges=c()),
                 )
 
 # add edge attrs
 edgeA <- list()
 
 edgeA$color["a~b"] <- "red"     # just for fun
 edgeA$color["b~c"] <- "blue"    # just for fun
 
 edgeA$weight["a~b"] <- 10       # here comes the buggy
 edgeA$weight["b~c"] <- 20       # one more
 
 # generate graph
 g <- new("graphNEL",nodes=myNodes,edgeL=myEdges,edgemode="undirected")
 
 plot(g,edgeAttrs=edgeA)
 
 ----------------------------------------------------------------------------------------------
 
 If we dont use the weights it works fine. Is this a bug, or I am doing something stupid?
 
 Thank you and regards,
 Kaustubh
 
 
 


--

Knowledge can only be got in one way, the way of experience;
there is no other way to know.
- Swami Vivekananda

=================================================================

Kaustubh R. Patil
Research Assistant,
LIACC,
Artificial Intelligence and Data Analysis Group,
University of Porto,
Rua de Ceuta 118-6º,4050-190, Porto,
Portugal

Phone : (00351) 22 33 92 090
Fax   : (00351) 22 33 92 099
Email : kap <at> liacc.up.pt
Web   : www.liacc.up.pt/~kap

=================================================================
__________________________________________________



	[[alternative HTML version deleted]]

