Usage
sample_network(g1,g2,
size,
taxnames,
maxdistance=0,
maxtime=3600,
maxnode=0,
verbose=FALSE,
file='log.txt',
maxcores=1,
node1,
node2,
sample_paths=c(),
old_path=c()
)
Arguments
g2
the augmented network Y with additional nodes (all the original nodes from X must be present in the augmented network Y)
taxnames
the taxon name of the nodes added to the original graph (default: we select all nodes that are not in g1)
size
the number of pathways to sample or the percent of node to sample if smaller than 1.0 (default=10)
maxnode
the maximum number of augmented nodes in network Y to take into account (default=0, no maximum number of augmented nodes to take into account. The augmented nodes are sorted by distance to the investigated node pairs by the algorithm.)
maxtime
the maximum search time per pathway (default=3600 seconds)
maxdistance
the maximum search distance to the added nodes in network Y (default=0, no maximum distance for augmented nodes to take into account)
verbose
flag to save into a file additionnal informations regarding the obtained paths (default=FALSE, the file name should be indicated)
file
filename to save the additionnal informations
node1
if node1 is set,we look only for paths starting from node1
node2
if node2 is set, we will only look at the paths starting at node1 and ending at node2
maxcores
maximum number of cores to use (default=1, use 0 to use half of the total cores available)
sample_paths
vector containing a list of node numbers to sample. Note: this override the size argument
old_path
vector containing a list of node numbers already sampled