比较两个具有相同顶点的提升图
可能这是一个新手问题,我需要你的帮助来比较两个具有相同顶点数量和名称的图。
我的主题大纲是:
Graph origG, computedG;
...
...
int nmbrSameEdges, nmbrExteraEdges, nmbrMissingEdges, nmbrIncorrectEdges;
void compareGraph(origG, computedG, nmbrSameEdges, nmbrExteraEdges, nmbrMissingEdges, nmbrIncorrectEdges);
提前致谢。
May be it is a novice question, I need your help to compare two graphs, having same number and name of the vertices.
Outline of my theme is:
Graph origG, computedG;
...
...
int nmbrSameEdges, nmbrExteraEdges, nmbrMissingEdges, nmbrIncorrectEdges;
void compareGraph(origG, computedG, nmbrSameEdges, nmbrExteraEdges, nmbrMissingEdges, nmbrIncorrectEdges);
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想我会喜欢这样进行手指练习:
使用演示
输出(使用 Boost Spirit):
请注意,示例代码已注释,它展示了如何在不使用 Boost Spirit 的情况下打印差异结果。
执行
I thought I'd enjoy having a finger exercise at this:
Usage demo
The output (using Boost Spirit):
Note that sample code is commented that shows how to get print the diff results without using Boost Spirit, too.
Implementation