public Map < Integer , Integer > getDistributionOfArticlesByCategory ( Wikipedia pWiki , CategoryGraph catGraph ) throws WikiPageNotFoundException { if ( degreeDistribution == null ) { // has not been initialized yet iterateCategoriesGetArticles ( pWiki , catGraph ) ; } return degreeDistribution ; }
Computes the distribution of the number of articles per category . If the return value has been already computed it is returned else it is computed at retrieval time .