calcSumProb {graph}R Documentation

Calculate the probability that a subgraph has an unusual number of edges.

Description

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.

Usage

calcSumProb(subgraph, origgraph)

Arguments

subgraph subgraph made from the original graph
origgraph original graph object from which the subgraph was made

Value

The probability of having greater than or equal to the subgraph's number of edges is returned.

Author(s)

Elizabeth Whalen

See Also

calcProb

Examples

#  data(PMgAFFYu95a, package=BioGraph)
#  Anodes <- nodes(PMgAFFYu95a)
#  subAgraph <- subGraph(Anodes[1:10], PMgAFFYu95a )
#  calcSumProb(subAgraph, PMgAFFYu95a)

[Package Contents]