
Connect a pair of nodes via all shortest paths
Source:R/CytoscapeGraphingFunctions.R
connectNodes.all.RdUses igraph::all_shortest_paths to find all shortest paths between
two nodes and returns the union of edges along those paths.
Arguments
- nodepair
Character vector of length 2 giving the source and target node names.
- ig.graph
An
igraphgraph object. IfNULLandnewgraph = TRUE, one is built fromedgefile.- edgefile
A data frame edge list used to construct the graph when
newgraph = TRUEand to extract edge attributes.- newgraph
Logical; if
TRUE, build a newigraphobject fromedgefilebefore computing paths.