Skip to content
Permalink
a5a5f364e5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (16 sloc) 505 Bytes
%function newnode = subnode(nodenum,node)
function newnode = subnode(nodenum,node)
[dum sz] = size(node);
tempnode = node;
for nodeloop = 1:sz
nlink = node(nodeloop).numlink;
for linkloop = 1:nlink
linknum = node(nodeloop).link(linkloop);
if (linknum == nodenum)
gonode.label(1) = nodenum;
gonode.label(2) = node(nodeloop).element;
tempnode = sublink(gonode.label(1),gonode.label(2),tempnode);
end
end
end
newnode = tempnode;