Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Graph using Boost Graph Library

Tags:

graph

boost

Can anyone please tell me that once I've created a graph using Boost Graph library, how can I display that graph?

My biggest concern is that the edge weights are coming from an exernal data source over the network. And I need to be able to display the edgeweights live as they get updated.

like image 787
TheTSPSolver Avatar asked Apr 28 '10 07:04

TheTSPSolver


1 Answers

Displaying graphs is a little bit harder then you seem to imagine. Your best bet is to use GraphViz through write_graphviz to create a visual representation of your graph.

Updating that graph "live" is a lot harder and you won't get anywhere with GraphViz but would need some real-time-graphics API and graph layouting algorithms that work continously.

like image 129
pmr Avatar answered Oct 05 '22 13:10

pmr