Skip to content

Commit dcd95b2

Browse files
committed
add edge to new node
1 parent 890d366 commit dcd95b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lattice.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ function create_lattice(lp)
337337
% it's not occupied
338338
% add a new node and an edge
339339
nv = lp.graph.add_node( newDestinations(:,i), node, lp.cost(i));
340+
lp.graph.add_edge(node, nv, lp.cost(i));
340341
additions = additions + 1;
341342
end
342343
else

0 commit comments

Comments
 (0)