policy_graph: Extract the Policy Graph (as an igraph Object)
Description
Convert the policy graph in a POMDP solution object into an igraph object.
Usage
policy_graph(x, belief = TRUE, col = NULL)
Arguments
x
A POMDP object.
belief
logical; add belief proportions as a pie chart in each node of
the graph? If belief points are provided by the solver, then these are used.
If a number is specified, then a random sample of that size is used instead
to calculate belief proportions.
col
colors used for the states in the belief proportions.
Value
An object of class igraph containing a directed graph.