DetermineInteractionTypeOfPath {CausalR} | R Documentation |
Determines the sign of a given path. Given a path and through the network, this function will determine if the path results in activation or inhibition. Activation is indicated by 1, inhibition by -1
DetermineInteractionTypeOfPath(network, nodesInPath)
network |
an igraph representing the network |
nodesInPath |
an ordered list of the nodes visited on the path - note that these contain numbers which use R's internal reference to the edges |
a signed integer representing the paths sign