Rgraphviz - issue with edge label when using multiple edges between two nodes
1
0
Entering edit mode
ptaranti • 0
@ptaranti-8494
Last seen 9.3 years ago

Dear All

I am using Rgraphviz to plot graphs in support to a research in the machine learning field. In the current stage we are working with chain of events graph generation, and these graphs usually have multiple edges between 2 nodes, and each edge has its own label and occurrence probability (rank).

I have searched the Rgraphviz documentation and internet forums without success. All packages were updated.

Issue:

When trying to plot more than one edge between two nodes with  distinct labels, the Rgraphviz uses only the first informed label to all these edges, ignoring the following labels. You can replicate this using the simple example that follows:

g <- new( "graphNEL", nodes= c("a","b"), edgemode="directed", edgeL= list( a = c("b", "b","b" ), b=c()) )
plot( g, main="test", edgeAttrs= list( label = c("a~b"="Y-label", "a~b"="Z-label", "a~b"="")), attrs=list(graph=list(rankdir="LR")) )

 

Current environment (another researcher observed the same issue under a windows 7 environment)  - sessionInfo() output:

R version 3.1.1 (2014-07-10)
Platform: x86_64-suse-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=pt_BR.UTF-8          LC_NUMERIC=C                 
 [3] LC_TIME=pt_BR.UTF-8           LC_COLLATE=pt_BR.UTF-8       
 [5] LC_MONETARY=pt_BR.UTF-8       LC_MESSAGES=pt_BR.UTF-8      
 [7] LC_PAPER=pt_BR.UTF-8          LC_NAME=pt_BR.UTF-8          
 [9] LC_ADDRESS=pt_BR.UTF-8        LC_TELEPHONE=pt_BR.UTF-8     
[11] LC_MEASUREMENT=pt_BR.UTF-8    LC_IDENTIFICATION=pt_BR.UTF-8

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
[1] Rgraphviz_2.10.0 graph_1.44.1     rkward_0.6.1    

loaded via a namespace (and not attached):
[1] BiocGenerics_0.12.1 parallel_3.1.1      stats4_3.1.1       
[4] tools_3.1.1   

 

 

Any advise will be highly appreciated

Pier-Giovanni Taranti (ptaranti@gmail.com)

CASNAV, Rio de Janeiro, Brazil

rgraphviz • 1.5k views
ADD COMMENT
1
Entering edit mode
@kasper-daniel-hansen-2979
Last seen 16 months ago
United States
This sounds like a bug. Could you add an issue to the Github repos, so I don't forget? I have a number of things I need to address with Rgraphviz, so I am envisioning a coding session (aka bug fixes and enhancements) really soon. Best, Kasper On Tue, Jul 28, 2015 at 8:29 AM, ptaranti [bioc] <noreply@bioconductor.org> wrote: > Activity on a post you are following on support.bioconductor.org > > User ptaranti <https: support.bioconductor.org="" u="" 8494=""/> wrote Question: > Rgraphviz - issue with edge label when using multiple edges between two > nodes <https: support.bioconductor.org="" p="" 70492=""/>: > > Dear All > > I am using Rgraphviz to plot graphs in support to a research in the > machine learning field. In the current stage we are working with chain of > events graph generation, and these graphs usually have multiple edges > between 2 nodes, and each edge has its own label and occurrence probability > (rank). > > I have searched the Rgraphviz documentation and internet forums without > success. All packages were updated. > > Issue: > > When trying to plot more than one edge between two nodes with distinct > labels, the Rgraphviz uses only the first informed label to all these > edges, ignoring the following labels. You can replicate this using the > simple example that follows: > > g <- new( "graphNEL", nodes= c("a","b"), edgemode="directed", edgeL= list( > a = c("b", "b","b" ), b=c()) ) > plot( g, main="test", edgeAttrs= list( label = c("a~b"="Y-label", > "a~b"="Z-label", "a~b"="")), attrs=list(graph=list(rankdir="LR")) ) > > > > Current environment (another researcher observed the same issue under a > windows 7 environment) - *sessionInfo()* output: > > R version 3.1.1 (2014-07-10) > Platform: x86_64-suse-linux-gnu (64-bit) > > locale: > [1] LC_CTYPE=pt_BR.UTF-8 LC_NUMERIC=C > [3] LC_TIME=pt_BR.UTF-8 LC_COLLATE=pt_BR.UTF-8 > [5] LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=pt_BR.UTF-8 > [7] LC_PAPER=pt_BR.UTF-8 LC_NAME=pt_BR.UTF-8 > [9] LC_ADDRESS=pt_BR.UTF-8 LC_TELEPHONE=pt_BR.UTF-8 > [11] LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=pt_BR.UTF-8 > > attached base packages: > [1] grid stats graphics grDevices utils datasets methods > [8] base > > other attached packages: > [1] Rgraphviz_2.10.0 graph_1.44.1 rkward_0.6.1 > > loaded via a namespace (and not attached): > [1] BiocGenerics_0.12.1 parallel_3.1.1 stats4_3.1.1 > [4] tools_3.1.1 > > > > > > Any advise will be highly appreciated > > Pier-Giovanni Taranti (ptaranti@gmail.com) > > CASNAV, Rio de Janeiro, Brazil > > ------------------------------ > > Post tags: rgraphviz > > You may reply via email or visit Rgraphviz - issue with edge label when using multiple edges between two nodes >
ADD COMMENT
0
Entering edit mode

Kasper,

Thanks. Issue submitted:

https://github.com/kasperdanielhansen/Rgraphviz/issues/7

 

Best

Pier

ADD REPLY

Login before adding your answer.

Traffic: 599 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