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

« back to all changes in this revision

Viewing changes to macros/metanet/ge_add_node.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:
 
1
function GraphList=ge_add_node(GraphList,node_x,node_y)
 
2
//Copyright INRIA
 
3
//Author : Serge Steer 2002
 
4
 
 
5
  n=size(GraphList.node_x,'*')+1
 
6
  GraphList.node_name(1,n)=""
 
7
  GraphList.node_type(1,n)=0;
 
8
  GraphList.node_x(1,n)=node_x
 
9
  GraphList.node_y(1,n)=node_y
 
10
  GraphList.node_color(1,n)=1;
 
11
  GraphList.node_diam(1,n)=0
 
12
  GraphList.node_border(1,n)=0
 
13
  GraphList.node_font_size(1,n)=0
 
14
  GraphList.node_demand(1,n)=0;
 
15
  GraphList.node_label(1,n)='';
 
16
  ge_drawnodes(n) 
 
17
  ge_add_history(list('add_node',n))
 
18
endfunction