routesAddEdge: Update a routes matrix (edge addition).

Description Usage Arguments Details See Also Examples

View source: R/properties.R

Description

A routes matrix is a matrix A, such that each element (i, j) is the number of routes from i to j in some directed graph.

Usage

1
  routesAddEdge(x, i, j)

Arguments

x

A routes matrix

i

The node from which the added edge emanates

j

The node that the added edge goes to

Details

This function updates the routes matrix to account for the addition of an edge from i to j in the directed graph

See Also

routes, routesRemoveEdge

Examples

1
2
3
4
5
6
x1 <- bn(c(), c(3), c(1), c(1, 2))
x2 <- bn(c(), c(3), c(1), c(1, 2, 3))

y <- routes(x1)
routesAddEdge(y, 3, 4)
routes(x2)

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.