How to plot a graph without intersecting edges?
2 views (last 30 days)
Can you input nodal coordinates to the graph generating function or specify in the plotting function to not have intersecting edges when plotting a graph?
% Random triangulation.
dt = delaunayTriangulation(rand(101,2));
edges = unique(sort(... % Unique mx2 list of
[dt.ConnectivityList(:,1:2);... % all edges in dt.
% Convert dt to graph, plot.
g = graph(edges(:,1),edges(:,2));
I'm dealing with triangulations but I'd like to use the graph class to change the triangulation for various reasons, which is why I'm converting to a graph.