Hi,
I have found a bug with the adjacency_list. It
seems that there's a bug with the deletion of a
vertex.
See the attachment for a small program that triggers
the problem.
Thanks in advance.
__________________________________________________________
Lèche-vitrine ou lèche-écran ?
magasinage.yahoo.ca
// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include <iostream>
#include
#include
#include
int _tmain(int argc, _TCHAR* argv[])
{
using namespace boost;
//typedef adjacency_list_traits Traits;// Does nothing?
typedef boost::property > VertexProperty;
typedef adjacency_list > Graph;
Graph G0;
Graph::vertex_descriptor v_descr[4];
Graph::edge_descriptor e_descr[4];
for (int i = 0; i < 4; i++)
{
v_descr[i] = boost::add_vertex(G0);
}
for (int i = 0; i < 4; i++)
{
boost::remove_vertex(v_descr[i], G0);
}
return 0;
}