Rgraphviz: adding weight to an edge
6
0
Entering edit mode
@kaustubh-patil-1544
Last seen 10.2 years ago
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20051220/ 9fa40750/attachment.pl
• 1.7k views
ADD COMMENT
0
Entering edit mode
@ting-yuan-liu-fhcrc-1221
Last seen 10.2 years ago
Hi Kaustubh, Could you also post you code so that we can try to reproduce the error? And post the result of sessionInfo() as well so that we can understand more for your machine. Thanks. Sincerely, Ting-Yuan ______________________________________ Ting-Yuan Liu Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center Seattle, WA, USA ______________________________________ On Tue, 20 Dec 2005, Kaustubh Patil wrote: > Dear all, > > I am using R 2.2.0 with latest releases of bioconductor and other packages (especially Rgraphviz). I am interested in drawing weighted graphs using Rgraphviz. It works perfectly fine if I change colour (color option), labels (label option) of the edge. But if I try to add weight (weight option) R exits with "segmentation fault" > > I would be grateful to have any comments. > > Thank you and Regards, > Kaustubh > > > __________________________________________________ > > > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor >
ADD COMMENT
0
Entering edit mode
Jeff Gentry ★ 3.9k
@jeff-gentry-12
Last seen 10.2 years ago
> I am using R 2.2.0 with latest releases of bioconductor and other > packages (especially Rgraphviz). I am interested in drawing weighted > graphs using Rgraphviz. It works perfectly fine if I change colour > (color option), labels (label option) of the edge. But if I try to add > weight (weight option) R exits with "segmentation fault" Could you please describe in more detail exactly what you're doing here? Plotting w/ edge weights in a standard manner works for me here, but that doesn't mean I'm doing the same thing you are.
ADD COMMENT
0
Entering edit mode
@wolfgang-huber-3550
Last seen 3 months ago
EMBL European Molecular Biology Laborat…
Dear Kaustubh, thanks for reporting. In order for this report to be useful and for anyone to be able to do anything about this, we need a code example to reproduce the problem. I could imagine this is a real bug, but unless somebody else can reproduce it, it could also be caused by anything else, including cosmic rays or bad feng shui in your computer room. Cheers Wolfgang Kaustubh Patil wrote: > Dear all, > > I am using R 2.2.0 with latest releases of bioconductor and other packages (especially Rgraphviz). I am interested in drawing weighted graphs using Rgraphviz. It works perfectly fine if I change colour (color option), labels (label option) of the edge. But if I try to add weight (weight option) R exits with "segmentation fault" > > I would be grateful to have any comments. > > Thank you and Regards, > Kaustubh > > __________________________________________________ > > > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor -- Best regards Wolfgang ------------------------------------- Wolfgang Huber European Bioinformatics Institute European Molecular Biology Laboratory Cambridge CB10 1SD England Phone: +44 1223 494642 Fax: +44 1223 494486 Http: www.ebi.ac.uk/huber
ADD COMMENT
0
Entering edit mode
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20051221/ e9b5cee7/attachment.pl
ADD REPLY
0
Entering edit mode
> edgeA$weight["a~b"] <- 10 # here comes the buggy > edgeA$weight["b~c"] <- 20 # one more > If we dont use the weights it works fine. Is this a bug, or I am > doing something stupid? Well, not that this excuses the segfault (it shouldn't happen, I'll look at this) but you are definitely setting weights in an odd manner. Why not just set them on the graph itself?
ADD REPLY
0
Entering edit mode
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20051222/ a3e2170f/attachment.pl
ADD REPLY
0
Entering edit mode
@jamain-adrien-j-1300
Last seen 10.2 years ago
Dear Kaustubh, Just an idea... I've never used Rgraphviz, but I've had similar problems in RGBL with graphs which have negative weights (already reported on the list). Have you checked that the weights you're trying to add are positive? Cheers Adrien > Dear Kaustubh, > > thanks for reporting. In order for this report to be useful > and for anyone to be able to do anything about this, we need > a code example to reproduce the problem. I could imagine this > is a real bug, but unless somebody else can reproduce it, it > could also be caused by anything else, including cosmic rays > or bad feng shui in your computer room. > > Cheers > Wolfgang > > > Kaustubh Patil wrote: > > Dear all, > > > > I am using R 2.2.0 with latest releases of bioconductor > and other packages (especially Rgraphviz). I am interested in > drawing weighted graphs using Rgraphviz. It works perfectly > fine if I change colour (color option), labels (label option) > of the edge. But if I try to add weight (weight option) R > exits with "segmentation fault" > > > > I would be grateful to have any comments. > > > > Thank you and Regards, > > Kaustubh > > > > > __________________________________________________ > > > > > > > > [[alternative HTML version deleted]] > > > > _______________________________________________ > > Bioconductor mailing list > > Bioconductor at stat.math.ethz.ch > > https://stat.ethz.ch/mailman/listinfo/bioconductor > > > -- > Best regards > Wolfgang > > ------------------------------------- > Wolfgang Huber > European Bioinformatics Institute > European Molecular Biology Laboratory > Cambridge CB10 1SD > England > Phone: +44 1223 494642 > Fax: +44 1223 494486 > Http: www.ebi.ac.uk/huber > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor >
ADD COMMENT
0
Entering edit mode
Hi, Adrien, Could you be a bit more specific about the problem(s) you encounter in RBGL? Some algorithms in RBGL only handle graphs with positive weights, while others could take both positive AND negative weights. If an algorithm fails to do what it's supposed to do, I'd like to know about it and try to fix it (or document it more clearly). Thanks Li > > Dear Kaustubh, > > Just an idea... I've never used Rgraphviz, but I've had similar problems > in RGBL with graphs which have negative weights (already reported on the > list). > > Have you checked that the weights you're trying to add are positive? > > Cheers > Adrien >
ADD REPLY
0
Entering edit mode
@jamain-adrien-j-1300
Last seen 10.2 years ago
Hi Li, It has to do with the sp.between function. Here is the thread where I reported the bug: https://stat.ethz.ch/pipermail/bioconductor/2005-November/011066.html Hope that helps, Adrien > > Hi, Adrien, > > Could you be a bit more specific about the problem(s) you > encounter in RBGL? > Some algorithms in RBGL only handle graphs with positive > weights, while others could take both positive AND negative > weights. If an algorithm fails to do what it's supposed to > do, I'd like to know about it and try to fix it (or document > it more clearly). > > Thanks > > Li > > > > > Dear Kaustubh, > > > > Just an idea... I've never used Rgraphviz, but I've had similar > > problems in RGBL with graphs which have negative weights (already > > reported on the list). > > > > Have you checked that the weights you're trying to add are positive? > > > > Cheers > > Adrien > > > >
ADD COMMENT
0
Entering edit mode
> Hi Li, > > It has to do with the sp.between function. > Here is the thread where I reported the bug: > https://stat.ethz.ch/pipermail/bioconductor/2005-November/011066.html > > Hope that helps, > Adrien > Hi, Adrien, Sorry that I missed the previous email bug report. The function, sp.between, only handles graphs with non-negative weights. It should return error in your case instead of core-dumping. I'll put in some checking and update the doc. Thanks, Li
ADD REPLY
0
Entering edit mode
Jeff Gentry ★ 3.9k
@jeff-gentry-12
Last seen 10.2 years ago
> But how do I do that? Look at the man page for addEdge, there is a mechanism for adding weights on edge creation. BTW, I checked in a fix for this problem, Rgraphviz version 1.9.2.
ADD COMMENT

Login before adding your answer.

Traffic: 894 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6