getRgraphvizEdgeNames: Get Rgraphviz compatitable edge names

View source: R/graph.R

getRgraphvizEdgeNamesR Documentation

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.

Author(s)

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

References

Rgraphviz package

Examples

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)

Accio/KEGGgraph documentation built on Jan. 13, 2023, 1:03 p.m.