]> git.ozlabs.org Git - ccan/commit
aga,agar: New shortcut2 sample graph and testcases based on it
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 6 Nov 2015 01:26:17 +0000 (12:26 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 20 Nov 2015 06:08:35 +0000 (17:08 +1100)
commit09378088f7f49f30cb61435712a8dc2e52a32f69
tree7a391484c03914bf4c5d735938e07abb36f3236f
parent13430d4e252edbe0c202237e5a956670da1efe0b
aga,agar: New shortcut2 sample graph and testcases based on it

This patch adds a new test graph "shortcut2" which includes a negative cost
edge.  Along with that we add a testcase for Dijkstra's algorithm checking
that it gracefully fails in this case.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/aga/test/api-adjacency.c
ccan/aga/test/api-dijkstra.c
ccan/aga/test/shortcut2.c [new file with mode: 0644]
ccan/aga/test/simple-graph.h
ccan/agar/test/api-adjacency.c
ccan/agar/test/api-dijkstra.c
ccan/agar/test/shortcut2.c [new file with mode: 0644]
ccan/agar/test/simple-graphr.h