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

« back to all changes in this revision

Viewing changes to macros/metanet/nodes_degrees.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:
4
4
if rhs<>1 then error(39), end
5
5
ta=g('tail');he=g('head');n=g('node_number');np1=n+1;
6
6
i=g('directed')
7
 
[lp,la,ls] = adj_lists(i,n,ta,he);
 
7
[lp,la,ln] = adj_lists(i,n,ta,he);
8
8
outdegree=lp(2:np1)-lp(1:n);
9
 
[lp,la,ls] = adj_lists(i,n,he,ta);
 
9
[lp,la,ln] = adj_lists(i,n,he,ta);
10
10
indegree=lp(2:np1)-lp(1:n);
 
11
endfunction