Refactor StaticGraph generation

This commit is contained in:
Patrick Niklaus
2017-03-07 03:09:18 +00:00
committed by Patrick Niklaus
parent 78a199e2fb
commit 58681fa7ea
2 changed files with 40 additions and 43 deletions
+2
View File
@@ -23,6 +23,8 @@ typedef TestStaticGraph::NodeArrayEntry TestNodeArrayEntry;
typedef TestStaticGraph::EdgeArrayEntry TestEdgeArrayEntry;
typedef static_graph_details::SortableEdgeWithData<TestData> TestInputEdge;
static_assert(traits::HasDataMember<TestInputEdge>::value, "TestInputEdge needs to have data");
constexpr unsigned TEST_NUM_NODES = 100;
constexpr unsigned TEST_NUM_EDGES = 500;
// Chosen by a fair W20 dice roll (this value is completely arbitrary)