Skip to content

Latest commit

 

History

History

graph

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

graph

library for graph

dijkstra

dijkstra.hpp
非負辺グラフに対する1点始点最短経路問題

Bellman_ford

bellman_ford.hpp
グラフに対する1点始点最短経路問題(非負もOK), 閉路検出.

warshall_floyd

warshall_floyd.hpp
グラフに対する全点対最短経路問題, 閉路検出(d[i][i]<0なら閉路)

ford_fulkerson

ford_fulkerson.hpp
最大流, 最小カット問題

bipartile

bipartile.hpp
グラフが2部グラフか判定する

  • check bipartile

bipartile matching

bipartile_matching.hpp

topological dag

topological_dag.hpp
トポロジカルソート

Prim

prim.hpp
最小全域木(木を拡張していく)

Kruskal

kruskal.hpp
最小全域木(最小コストの辺から見ていく)

Boruvka

boruvka.hpp
最小全域木(森を連結していく)

Edmonds Karp

edmonds_karp.hpp
最大流アルゴリズム(最短路から更新していく)

Dinic

dinic.hpp
最大流アルゴリズム(BFS+DFS)

Primal Dual

primal_dual.hpp
最小費用流アルゴリズム(最短路を構築していく. ポテンシャルを導入してdijkstraを使う)

Successive Shortest Path

successive_shortest_path.hpp
最小費用流アルゴリズム(最短路を構築していく. ベルマンフォードを使う)

Strongly Connected Components

strongly_connected_componens.hpp
強連結成分分解
2-SATは全clauseが2つの論理式のORとなっているもののみ

Hopcroft Karp Algorithm

hopcroft_karp.hpp
二部マッチング

Minimum Steiner Tree

steiner_tree.hpp
最小シュタイナー木

LowLink

lowlink.hpp
lowlinkを用いてグラフの橋, 関節点などを求める.