ng_walk: Walk a path on the current graph in a navGraph session

Description Usage Arguments Author(s) See Also Examples

View source: R/NavGraphHandler.R

Description

If you create a path outside the navGraph session, you can let navGraph walk you path.

A path has to be a sequence of node names of adjoining nodes in the current shown graph.

If a path has been walked through, it gets added to the activePath in the path tool of the running navGraph session.

Usage

1
ng_walk(nghandler, path)

Arguments

nghandler

navGraph handler of a running navGraph session.

path

Vector of node names that are adjoining in the current graph. A single character string with the node names separated by a space also works.

Author(s)

Adrian Waddell and R. Wayne Oldford

See Also

navGraph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Define a NG_data object
ng.iris <- ng_data(name = "iris", data = iris[,1:4],
		shortnames = c('s.L', 's.W', 'p.L', 'p.W'))

## start a navGraph session
nav <- navGraph(ng.iris)

## Find linegraph
LG <- linegraph(completegraph(shortnames(ng.iris)))

## find a path
library(PairViz)
path = eulerian(LG)

## walk the path
ng_walk(nav,path)

RnavGraph documentation built on May 29, 2017, 4:18 p.m.