Here is my problem: I have a graph structure (with straight line edges) which I know to be planar (i.e. there exists an embedding of the graph where no edges cross - Planar graph - Wikipedia, the free encyclopedia). I need an algorithm which will take my graph and produce a straight line planar embedding of it. The algorithm does not need to be too efficient (an O(N^2) algorithm would do fine). Any ideas/suggestions?
3 replies to this topic
#1
Posted 13 December 2010 - 09:56 AM
|
|
|
#2
Posted 13 December 2010 - 01:27 PM
I'd want to start with how you want to represent the solution. Did you want a set of x/y coordinates for each vertex?
#3
Posted 14 December 2010 - 05:41 AM
yes, exactly. i can also give you more details about how i represent a graph structure if you like...
#4
Posted 15 December 2010 - 01:59 PM
The first thing I would do is get untangle here: Simon Tatham's Portable Puzzle Collection Use that to try developing how YOU make a planar graph planar. Once you do that, you will need to write edge cross detection algorithms based on the location of the vertices, then implement your algorithm.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









