Skip to content

An easy to use, rust, graph algorithm implement

License

Notifications You must be signed in to change notification settings

wufangjie/graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An easy to use, rust, graph algorithm implement

there is at most one edge from one vertex to another (can be the same)

Done

core data structure
easy to use/test macros
dfsdfs
iddfs
bfs
DAG’s topological sortdfs
reference count
strongly connected compoments (SCC)
minimum spanning treekruskal
prim
single source shortest pathdijkstra
A*
bellman ford
spfa
multiple sources shortest pathjohnson
floyd warshall
augment pathbipartite matching
vertex disjoint paths
edge disjoint paths
maxflow (ford fulkerson)edmonds karp
dinic (new)
min-cost max-flow

built-in testing graphs

unweighted

./data/scc.png

./data/mbm.png

./data/dp.png

weighted

./data/mst.png

./data/spa.png

./data/spn.png

./data/mf.png

NOTE

iter & and &mut are hard to use, so I used owned version, and using outer variables to mutate graph

About

An easy to use, rust, graph algorithm implement

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published