~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/metanet/find_path.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
end
12
12
// check g
13
13
check_graph(g)
14
 
// compute lp, la and ls
 
14
// compute lp, la and ln
15
15
n=g('node_number')
16
16
ma=prod(size(g('tail')))
17
17
if g('directed')==1 then
18
 
  [lp,la,ls]=m6ta2lpd(g('tail'),g('head'),n+1,n)
 
18
  [lp,la,ln]=m6ta2lpd(g('tail'),g('head'),n+1,n)
19
19
else
20
 
  [lp,la,ls]=m6ta2lpu(g('tail'),g('head'),n+1,n,2*ma)
 
20
  [lp,la,ln]=m6ta2lpu(g('tail'),g('head'),n+1,n,2*ma)
21
21
end
22
22
// compute path
23
 
[l,v]=m6dfs(i,lp,ls,n)
24
 
p=m6prevn2p(i,j,v,la,lp,ls,g('directed'))
 
23
[l,v]=m6dfs(i,lp,ln,n)
 
24
p=m6prevn2p(i,j,v,la,lp,ln,g('directed'))
 
25
endfunction