本文整理汇总了C++中Digraph::prepare_rbf_calculation方法的典型用法代码示例。如果您正苦于以下问题:C++ Digraph::prepare_rbf_calculation方法的具体用法?C++ Digraph::prepare_rbf_calculation怎么用?C++ Digraph::prepare_rbf_calculation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Digraph
的用法示例。
在下文中一共展示了Digraph::prepare_rbf_calculation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/**
* Test the generations of UDRT and GDRT
*/
TEST(DigraphTest, TransformedDigraph)
{
Digraph* digraph = DigraphExample::generateDigraph2();
digraph->calculate_period_gcd();
digraph->calculate_all_gcd();
digraph->prepare_rbf_calculation(false);
digraph->prepare_ibf_calculation(false);
if (output) {
digraph->unit_digraph->write_graphviz(cout);
digraph->gran_digraph->write_graphviz(cout);
}
}
示例2: TEST
TEST(DigraphTest, Digraph4)
{
Digraph* digraph = DigraphExample::generateDigraph4();
digraph->tf = 100;
digraph->prepare_digraph();
digraph->prepare_rbf_calculation(false);
int dbf[60] = {0, 0, 0, 0, 0, 2, 2, 2, 3, 3,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 7, 7,
8, 8, 8, 9, 9, 9, 9, 9, 9, 9,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11};
for (int i=0; i<60;i++) {
EXPECT_EQ(digraph->dbf(i), dbf[i]);
}
}