getAllShortestPaths: get all of shortest paths to target

Description Usage Arguments Details Value

View source: R/functions_graph.R

Description

Get all of shortest paths from initial states to goal states (or to specified states). It may take a long time.

Usage

1

Arguments

g

an 'igraph' object generated by makeGraph function.

target

a numerical vector, which gives IDs of target states. NULL means IDs of goal states.

Details

see makeGraph for example code.

Value

a list with following elements:

state

a list of character vectors. ith element gives states in the ith path.

transition

a list of character vectors. ith element gives transitions in the ith path.


shigono/rSlidePzl documentation built on Jan. 21, 2021, 8:01 a.m.