柠檬图库的边权重
Edge weights with the lemon graph library
我正在使用Lemon图形库。
我想给边赋整数权值。因此我使用的是EdgeMap。不幸的是,我的代码无法编译。
no matching function for call to 'lemon::concepts::Graph::EdgeMap<int>::EdgeMap(lemon::ListGraph&)'
任何想法?
#include <lemon/list_graph.h>
#include <lemon/concepts/graph.h>
#include <iostream>
using namespace lemon;
using namespace std;
int main(int argc, const char * argv[])
{
ListGraph g;
lemon::concepts::Graph::EdgeMap<int> map(g);
return 0;
}
看起来你在这里试图调用一个禁止的复制构造函数。lemon::ListGraph()
的复制构造函数被标记为private
, EdgeMap (const Graph &)
需要一个const Graph &
参数。
换句话说,ListGraph
和EdgeMap
的概念不匹配。据我从他们的文档中了解,ListGraph
提供了concepts::Digraph
的概念,而EdgeMap
需要一个符合ReferenceMap
的实现。
相关文章:
- D3D11-将混合权重和索引传递到顶点着色器
- 提升如何在图形可视化中写入边缘的权重?
- OpenCV 3 中的神经网络权重
- 我对 MyGraph 属性顶点名称和边权重有问题
- 生成具有均匀汉明权重 (popcount) c++ 的整数
- 保存在(Python)tensorflow中的权重未加载到C++tf中
- 我不确定如何引用此神经网络训练方法中的权重
- 多部分基准测试的权重是多少?
- BGL 获取图形的权重图
- 如何使用Lua5.1柠檬语法?
- 计算圆圈中权重的乘积(图形)
- C++带有权重的随机非重复整数
- 如何从TensorFlow .pb模型中获取权重格式?
- 如何使用所有其他文件信息来编译代码,例如HAAR级联训练的权重的XML文件
- 素数算法:通过边权重的总和显示相关边
- 有没有一种方法可以使用弗洛伊德-沃歇尔算法给出最短路径,其中存在负权重循环而不允许重叠边缘?
- 用于计算统一子字符串权重的代码
- std::d iscrete_distribution() 是否允许零权重
- 具有恒定权重的 Dijkstra 最短路径算法
- 柠檬图库的边权重