Added code to prevent edges from crossing

This commit is contained in:
2011-06-23 13:54:28 -04:00
parent fc71203220
commit a9bd00f37d
5 changed files with 78 additions and 4 deletions

View File

@ -43,6 +43,8 @@ class Graph
Vertex* get_current_vertex() { return current_vertex; }
private:
bool vertex_would_overlap(int x, int y, int r);
bool crosses_edge(Edge e);
void add_vertex(int x, int y, int r);
Vertex* current_vertex;