| 1 | = Dependency graph = |
| 2 | |
| 3 | This service is available under the ”Dependency graph” tab. |
| 4 | |
| 5 | To learn more about dependency analysises see the [wiki:Dependency Dependency Analysis page]. |
| 6 | |
| 7 | On this tab, it is possible to generate |
| 8 | * Wx based graphical graphs ("Run and draw" button) |
| 9 | * Svg graphs ("Draw SVG graph" button) |
| 10 | * Javascript based "smart graphs" ("Draw smart graph" button) |
| 11 | An application called Graphviz is needed to generate results (also when using Wx based graphics). |
| 12 | The user can also list dependencies using an Erlang term based representation ("Print dependencies" button). |
| 13 | |
| 14 | == General configuration == |
| 15 | Dependency examinations can be performed on |
| 16 | * Module group |
| 17 | * Module |
| 18 | * Function level |
| 19 | using the whole graph ("All") or the cyclic sub-graph ("Cycles"). |
| 20 | |
| 21 | == Module group level == |
| 22 | |
| 23 | Module groups can be added using the textbox labelled "Define modulegroup by regexp". It is also |
| 24 | possible to use default module groups determined by RefactorErl. |
| 25 | |
| 26 | == Module level == |
| 27 | |
| 28 | When using this level, it is possible to define a start module (with a textbox labelled "Start module") |
| 29 | and to select excluded modules. ("Excluded modules", "Exclude leaves of these modules" lists on the left) |
| 30 | To add an excluded module (or leaf): |
| 31 | 1, type the name of it into the textbox "Start module" |
| 32 | 2, click on Add button (next to "Excluded modules" or "Exclude leaves of these modules" lists) |
| 33 | 3, delete the module name from textbox "Start module" (if you do not want it to be the start module of |
| 34 | the analysis |
| 35 | |
| 36 | == Function level == |
| 37 | |
| 38 | The same instructions should be applied as for module level. |
| 39 | |
| 40 | == Wx based graphs == |
| 41 | |
| 42 | When drawing Wx based graphs you can use the following controls: |
| 43 | * zoom slider on the top (to zoom on the graph) |
| 44 | * node ranking slider on the top (to increase/decrease the amount of nodes shown) |
| 45 | * "Search for" text control and button on the top (to search for a node with this name) |
| 46 | Node ranking is based on the degree of the node and its type (root, module group, module, function). |
| 47 | |
| 48 | Graph nodes are also clickable. Using left click you can open the code text related to the node, and with |
| 49 | right you can start a dependency analysis from that node (as starting node). |
| 50 | |