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

For all the existing test graphs, the shortest path by cost is also the
shortest path by number of edges.  This patch adds a new test graph where
that is not the case, in order to test that the Dijkstra's algorithm
implementation correctly handles that 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/shortcut1.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/shortcut1.c [new file with mode: 0644]
ccan/agar/test/simple-graphr.h