started playing around with the graph using boost graphs. we'll see how this goes.