1

I'm going to write a framework for implementation of algorithms on graphs. Of course I have to write my own Graph class, but at first I want to see what good implementations of this kind of class are there exist. I only know about boost::graph. What other open source C++ libraies could you suggest to look at?

Mihran Hovsepyan
  • 10,810
  • 14
  • 61
  • 111

1 Answers1

3

Stick with boost:graph. It's a mature and high quality library, so I see no reasons why you should look further than that.

And using it + studying its source will help you more than if you fumble about trying to make your own graph class without taking a look at proven libraries.

darioo
  • 46,442
  • 10
  • 75
  • 103
  • Thanks. But I think it will be good to look at some other implementations. – Mihran Hovsepyan Dec 25 '10 at 15:26
  • 1
    `boost::graph` is excellent. You can even use it on graph structures you did not anticipate. I managed to use it to solve dynamic programming problems on arrays. You have to write iterator/traits classes which describe the graph structure, and use the `boost::graph` algorithms. They also provide a swiss-army-knife graph class suitable for most purposes, and also wrappers to legacy Fortran graph libraries. – Alexandre C. Dec 25 '10 at 15:31