calcSumProb {graph} | R Documentation |
For any graph a set of nodes can be used to obtain an induced subgraph
(see subGraph
). An interesting question is whether that
subgraph has an unusually large number of edges. This function
computes the probability that a random subgraph with the same
number of nodes has more edges than the number observed in the
presented subgraph. The appropriate probability distribution is
the hypergeometric.
calcSumProb(subgraph, origgraph)
subgraph |
subgraph made from the original graph |
origgraph |
original graph object from which the subgraph was made |
The probability of having greater than or equal to the subgraph's number of edges is returned.
Elizabeth Whalen
# data(PMgAFFYu95a, package=BioGraph) # Anodes <- nodes(PMgAFFYu95a) # subAgraph <- subGraph(Anodes[1:10], PMgAFFYu95a ) # calcSumProb(subAgraph, PMgAFFYu95a)