Merge: model: Add `mpackage` importation hierarchy
authorJean Privat <jean@pryen.org>
Thu, 5 Sep 2019 19:53:59 +0000 (15:53 -0400)
committerJean Privat <jean@pryen.org>
Thu, 5 Sep 2019 19:53:59 +0000 (15:53 -0400)
commit70fdec7fff15ce99690d0fc78c9ade73e6a421d7
tree475304d2c983d5f342f304f7924273f77e45cbbd
parent5373470794e7dd675caaee68b69aca9db82f3ee1
parent1b5587395507054fdeea889bc562b34fc83576fb
Merge: model: Add `mpackage` importation hierarchy

Added a `mpackage_importation_hierarchy` graph to keep the hierarchy of packages. The packages relations are defined when the `set_imported_mmodules` is called.

This pr is related to the programming by contract. The objective is to determine when the use of a contract is necessary in a given context.

Note in this graph all the packages are in relation with themself.

example for all nitc package hierarchy :

![](https://sendeyo.com/up/d/514e168e33)

This pr has a dependency with the #2784

Pull-Request: #2788
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/graph/digraph.nit
src/nitweb.nit