Graph Algorithm Boost

  • Thread starter Michal Sekletar
  • Start date
M

Michal Sekletar

Hello everyone,

I am currently working on compiler for new type of configuration
language. Language is domain-specific focused on network description. As
we all know network consists of network devices like routers and
switches etc...I build a graph structure representing network topology
and now I'd like to perform some computation using this graph structure
to reveal some logic errors in network design.
For representing network topology I've used adjacency_list from
BGL(boost graph lib). First I want to start with simple heuristic,
please consider following example.

A ---------B D------E
\ /
\ /
\ /
\ /
C

A, B, C, D, E are routers in some area and they are talking to each
other using OSPF routing protocol. In this example there is no
connection between segments ABC and DE, and this might be possible error
and I'd like to find out this fact and print out a warning.
I want to use some graph algorithm, in this case simple breadth first
search should do the trick and reveal that segments ABC and DE are
disjoint. Algorithm should end up with empty queue having any vertices
to expand but there will be some undiscovered vertices because graph is
disjoint.

Problem is that I don't how to use boost graph algorithms properly,
because there are templates and meta-programming all over and I am
pretty confused.

Any advices/tips would be appreciated.

Thanks
Michal Sekletar
 
V

Victor Bazarov

I am currently working on [...]

Problem is that I don't how to use boost graph algorithms properly,
because there are templates and meta-programming all over and I am
pretty confused.

Any advices/tips would be appreciated.

Have you tried their online discussion forums?

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top