graph.cpp
//print the weight table, for debug
print the weight table, for debug
print the weight table for debug
void Graph::print_weight()
{
	for(int i = 0; i < nodes.size(); ++i)
	{
		cout << i <<"   ";
		for(int j = 0; j < nodes.size(); ++j)
		{
			cout << std::setw(12) << right << weight[i][j] << " ";
		}
		cout <<endl;
	}
}
void Graph :: print_weight ( ) { for ( int i = 0 ; i < nodes . size ( ) ; ++ i ) { cout << i << " " ; for ( int j = 0 ; j < nodes . size ( ) ; ++ j ) { cout << std :: setw ( 12 ) << right << weight [ i ] [ j ] << " " ; } cout << endl ; } }
print the weight table, for debug
print the weight table for debug