Changes between Version 5 and Version 6 of Dependency/Functions


Ignore:
Timestamp:
Apr 17, 2012, 2:06:02 PM (13 years ago)
Author:
manualwiki
Comment:

dep. change

Legend:

Unmodified
Added
Removed
Modified
  • Dependency/Functions

    v5 v6  
    114114 
    115115* Checking for cycles in module level. \\ 
    116   {{{ri:print_dep([{level, mod}, {type, all}]). }}} 
     116{{{#!erlang 
     117ri:print_dep([{level, mod}, {type, all}]). 
     118}}} 
    117119   
    118120 
    119121* Checking for cycles in function level, and printing out the whole names of the functions (Module:Function/Arity). \\ 
    120  {{{ri:print_dep([{level, func}, {type, cycles}]). }}} 
    121  
    122   {{{{6 cycle(s), }}} \\ 
    123   {{{[['foo:fv4/1','foo:fv4/1'],}}} \\ 
    124   {{{['test3:p/1','test:fv6/1','test3:p/1'],}}} \\ 
    125   {{{['cycle4:f4/1','cycle3:f3/1','cycle4:f4/1'],}}} \\ 
    126   {{{['cycle2:fv2/1','cycle1:fv1/0','cycle2:fv2/1'],}}} \\ 
    127   {{{['test:fv5/1','test:fv4/2','test:fv5/1'],}}} \\ 
    128   {{{['cycle4:f5/1','cycle3:f6/1','cycle4:f5/1']] }}} \\ 
     122{{{#!erlang 
     123ri:print_dep([{level, func}, {type, cycles}]). 
     124 
     125 
     126  6 cycle(s),  
     127  [['foo:fv4/1','foo:fv4/1'], 
     128  ['test3:p/1','test:fv6/1','test3:p/1'], 
     129  ['cycle4:f4/1','cycle3:f3/1','cycle4:f4/1'], 
     130  ['cycle2:fv2/1','cycle1:fv1/0','cycle2:fv2/1'], 
     131  ['test:fv5/1','test:fv4/2','test:fv5/1'], 
     132  ['cycle4:f5/1','cycle3:f6/1','cycle4:f5/1']] 
     133}}} 
    129134 
    130135 
    131136* Checking for cycles in function level, and printing out the graph nodes of the functions (notice the changed "type" in the proplist) \\ 
    132  {{{ri:print_dep([{level, func}, {type, all}]).}}} 
    133  
    134  {{{{"6 cycle(s)",}}} \\ 
    135   {{{[[{'$gn',func,28},{'$gn',func,28}], }}} \\ 
    136   {{{[{'$gn',func,29},{'$gn',func,37},{'$gn',func,29}],}}} \\ 
    137   {{{[{'$gn',func,7},{'$gn',func,9},{'$gn',func,7}],}}} \\ 
    138   {{{[{'$gn',func,2},{'$gn',func,1},{'$gn',func,2}],}}} \\ 
    139   {{{[{'$gn',func,36},{'$gn',func,35},{'$gn',func,36}],}}} \\ 
    140   {{{[{'$gn',func,8},{'$gn',func,6},{'$gn',func,8}]]}}}} \\ 
     137{{{#!erlang 
     138ri:print_dep([{level, func}, {type, all}]). 
     139 
     140  "6 cycle(s)", 
     141  {[[{'$gn',func,28},{'$gn',func,28}],  
     142  [{'$gn',func,29},{'$gn',func,37},{'$gn',func,29}], 
     143  [{'$gn',func,7},{'$gn',func,9},{'$gn',func,7}], 
     144  [{'$gn',func,2},{'$gn',func,1},{'$gn',func,2}], 
     145  [{'$gn',func,36},{'$gn',func,35},{'$gn',func,36}], 
     146  [{'$gn',func,8},{'$gn',func,6},{'$gn',func,8}]]} 
     147}}} 
    141148 
    142149* Checking for cycles in module level from an exact node \\ 
    143  {{{ri:print_dep([{level, mod}, {gnode, {'$gn', module, 24}}]). }}} 
    144  
    145          {{{{true,[[{'$gn',module,24},}}} \\ 
    146          {{{{'$gn',module,25},}}} \\ 
    147          {{{{'$gn',module,24}]]}}}} \\ 
     150{{{#!erlang 
     151ri:print_dep([{level, mod}, {gnode, {'$gn', module, 24}}]).  
     152 
     153         {true,[[{'$gn',module,24}, 
     154         {'$gn',module,25}, 
     155         {'$gn',module,24}]]} 
     156}}} 
    148157 
    149158 
    150159* Checking for cycles in function level from an exact node given with its whole name \\ 
    151  {{{ri:print_dep([{level, func}, {gnode, "cycle4:f5/1"}]). }}} 
     160{{{#!erlang 
     161ri:print_dep([{level, func}, {gnode, "cycle4:f5/1"}]). 
     162}}} 
    152163 
    153164== Representation == 
     
    226237 
    227238 
    228 * {{{ri:draw_dep([{level, mod}, {gnode, erlang}]).}}} 
    229 * {{{ri:draw_dep([{level, mod}, {gnode, erlang}, {dot, "/home/working/dot/test.dot" }]).}}} 
    230 * {{{ri:draw_dep([{level, func}, {gnode, "lists:hd/1"}]). }}} 
    231 * {{{ri:draw_dep([{level, mod},{gnode, {'$gn', module, 4}}]). }}} 
    232 * {{{ri:draw_dep([{type, cycles}, {level, func}, {gnode, {'$gn', func, 36}}]). }}} 
     239* 
     240{{{#!erlang 
     241ri:draw_dep([{level, mod}, {gnode, erlang}]). 
     242}}} 
     243* 
     244{{{#!erlang 
     245ri:draw_dep([{level, mod}, {gnode, erlang}, {dot, "/home/working/dot/test.dot" }]). 
     246}}} 
     247* 
     248{{{#!erlang 
     249ri:draw_dep([{level, func}, {gnode, "lists:hd/1"}]). 
     250}}} 
     251* 
     252{{{#!erlang 
     253ri:draw_dep([{level, mod},{gnode, {'$gn', module, 4}}]). 
     254}}} 
     255* 
     256{{{#!erlang 
     257ri:draw_dep([{type, cycles}, {level, func}, {gnode, {'$gn', func, 36}}]). 
     258}}}