routesRemoveEdge: Update a routes matrix (edge removal).

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
  routesRemoveEdge(x, i, j)

Arguments

x

A routes matrix

i

The node from which the removed edge emanates

j

The node that the removed edge goes to

Details

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

See Also

routes, routesAddEdge

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(x2)
routesRemoveEdge(y, 3, 4)
routes(x1)

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