GetShortestPathsFromCCG {CausalR} | R Documentation |
Gets the node names in the shortest path from one node in a CCG to another
GetShortestPathsFromCCG(network, hypothesisnode, targetnode, showbothdirs = FALSE, quiet = FALSE)
network |
built from iGraph |
hypothesisnode |
hypothesis node ID |
targetnode |
target node ID |
showbothdirs |
where multiple paths from a positive and negative node, FALSE returns only the shortest. Otherwise both are returned. |
quiet |
a flag to suppress output to console. FALSE by default. |
a list of vectors containing the nodes of individual paths
network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif') ccg = CreateCCG(network) hypothesisnode = 1 targetnode = 10 GetShortestPathsFromCCG (ccg, hypothesisnode, targetnode)