图形可视化(增强图)
我有使用 boost 图形库的 C++ 程序。我想知道是否有任何方法可以可视化节点中包含的特定位置值之后的图形(节点和可选的边)。请查看下面的图像示例以了解我想要可视化的内容: http://img11.hostingpics.net/pics/647608graphViz.png
谢谢。
I have C++ program using boost graph library. I wonder if there is any way to visualize the graph (nodes and optionally edges) following a certain position values contained in nodes. Please look the examples of the image bellow to understand what I want to visualise:
http://img11.hostingpics.net/pics/647608graphViz.png
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你很幸运。
Boost graph 可以序列化到
dot
语言(这是 GraphViz)。 (免费)Boost Graph Library 书籍和网站上有几个示例。请参见例如:http://www.boost。 org/doc/libs/release/libs/graph/doc/write-graphviz.html
如果您在上一个网页上获取示例的输出并运行,
您将得到类似于下图:
这是指向 使用动态属性的示例
You're in luck.
Boost graph can serialize to and deserialize from the
dot
language (which is the language used by GraphViz). There are several examples in the (free) Boost Graph Library book and on the site.See e.g.: http://www.boost.org/doc/libs/release/libs/graph/doc/write-graphviz.html
If you take the output of the sample on the previous webpage and run
You'll get something like the following picture:
Here is a direct link to an example using dynamic properties