Learn R Programming

KEGGgraph (version 1.30.0)

getRgraphvizEdgeNames: Get Rgraphviz compatitable edge names

Description

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

Usage

getRgraphvizEdgeNames(graph)

Arguments

graph
A graph object

Value

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

References

Rgraphviz package

Examples

Run this code
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)

Run the code above in your browser using DataLab