How does enrichment analysis work in network analysis?

The enrichment analysis is to test whether any pathways or metabolite/gene sets (defined within the user selected library) are significantly enriched among the currently highlighted nodes within the network. MetaboAnalyst uses hypergeometric tests to compute the enrichment p values.