Commit 8577cc4b authored by Jean-Yves TINEVEZ's avatar Jean-Yves TINEVEZ
Browse files

Prune duplicate edges when creating the junction graph.

parent 5f725368
......@@ -19,7 +19,9 @@ function obj = from_bellaiche( ...
fprintf('Building the junction graph.\n' )
edge_table = table();
edge_table.EndNodes = sides.vertices;
% Prune duplicate edges.
edge_table.EndNodes = unique( sides.vertices, 'rows' );
node_table = table();
jxy = vertices.XYs;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment