2010-07-11から1日間の記事一覧

boostでネットワーク解析

boostの導入は前の記事。 adjacency_list クラスは隣接行列をグラフ。Graph型として名付け直す。 色々なコンストラクタがある。 http://boost.cppll.jp/HEAD/libs/graph/doc/adjacency_list.html#sec:iterator-constructor 参考: パラメータは5つ。 EdgeLis…

boost

C

boost はC言語のライブラリ。インストール: cygwinで使う場合は、setup.exe (cygwinのインストール時に 使うソフト)からインストールできる。 テストプログラム (test.cpp) #include <iostream> #include <boost/format.hpp> using namespace std; int main(){ cout << boost::format(</boost/format.hpp></iostream>…