getRgraphvizEdgeNames: Get Rgraphviz compatitable edge names

Description Usage Arguments Value Author(s) References Examples

View source: R/graph.R

Description

Get Rgraphviz compatitable edge names, where the out- and in-nodes sharing a edge are concatenated by "~".

Usage

1

Arguments

graph

A graph object

Value

A list of names, the order is determined by the edge order.

Author(s)

Jitao David Zhang maito:jitao_david.zhang@roche.com

References

Rgraphviz package

Examples

1
2
3
4
5
tnodes <- c("Hamburg","Dortmund","Bremen", "Paris")
tedges <- list("Hamburg"=c("Dortmund", "Bremen"),
"Dortmund"=c("Hamburg"), "Bremen"=c("Hamburg"), "Paris"=c())
tgraph <- new("graphNEL", nodes = tnodes, edgeL = tedges)
getRgraphvizEdgeNames(tgraph)

Example output

Attaching package: 'KEGGgraph'

The following object is masked from 'package:graphics':

    plot

[1] "Hamburg~Dortmund" "Hamburg~Bremen"   "Dortmund~Hamburg" "Bremen~Hamburg"  

KEGGgraph documentation built on Nov. 8, 2020, 5:42 p.m.