
图论
zlc_abc
图论废柴,也欢迎关注我的知乎专栏 数学与计算
展开
-
Finding all cycles in undirected graphs
I need a working algorithm for finding all simple cycles in an undirected graph. I know the cost can be exponential and the problem is NP-complete, but I am going to use it in a small graph (up to 20-30 vertices) and the cycles are small in number.The f.原创 2020-06-06 11:16:31 · 381 阅读 · 0 评论 -
Floyd-Warshall Algorithm介绍及各语言搜集比较
Floyd-Warshall Algorithm is an algorithm for finding the shortest path between all the pairs of vertices in a weighted graph. This algorithm works for both the directed and undirected weighted graphs. But, it does not work for the graphs with negative cyc.原创 2020-06-05 16:17:17 · 453 阅读 · 0 评论 -
二部图汇总
This C++ Program checks whether Graph is a Bipartite using 2 ColorAlgorithm Here is source code of the C++ Program to check whetherGraph is a Bipartite using 2 Color Algorithm./* C++ Program to Check whether Graph is a Bipartite using 2 Color Algorit.原创 2020-06-03 20:50:13 · 224 阅读 · 0 评论 -
图论(圈或路结构相关)基础习题实战2
经常问的习题汇总原创 2020-05-27 22:12:18 · 311 阅读 · 0 评论 -
判断平面图的库拉托夫斯基定理
平面图前几天看了B站 分享了一个平面图的库拉托夫斯基定理,但是里面的Up主有一些内容引起了我的兴趣。1 平面图定义:在图论中,平面图是可以画在平面上并且使得不同的边可以互不交叠的图。2 非平面图定义: 如果一个图无论怎样都无法画在平面上,并使得不同的边互不交叠,那么这样的图不是平面图,或者称为非平面图。下面是几个平面图和非平面图例子。可平面图与平面图的区分。这里有一些细微的概念问题...原创 2020-05-07 10:21:57 · 12363 阅读 · 4 评论 -
图论习题2
继续上次学习i:1.15 : 不一定正确。可以是多个圈的并,如果连通,则正确!图论圈的标准定义:a cycle in a graph is a non-empty trail in which the only repeated vertices are the first and last vertices.可进一步思考:A graph whose vertices all have ...原创 2020-05-02 16:59:30 · 318 阅读 · 0 评论 -
图论中的习题学习散记
优快云 博客说图论大多侧重算法,很少涉及理论方面。作为一个优秀的图论学习者,习题的训练需要足够有效; 做题也是想进一步深入了解图论的捷径. 所以我在阅读论文同时花一些散的时间分析图论习题和经典的定理。以期达到加深功底和发散思维的效果注: α\alphaα 是图的顶点独立集。...原创 2020-04-30 18:49:00 · 275 阅读 · 0 评论 -
图论基础性习题实战笔记
从今天起,尽可能分享一些图论的习题。为了节省抄题的时间,在排版上不予过分究竟。不可避免引用一些文章,这里一并感谢作者,如果侵权请联系删除。分析: 首先注意这个微信公众号主要讲运筹学,图论在运筹学课程有很大一部分,不过图论术语中文目前相对不固定,运筹学里面有一些出入,这是正常的。比如上述的单链在图论一般说路 (path)。本题难度很一般,但是他体现了反证法的威力, 以及证明图连通的小策略。这...原创 2020-04-30 15:30:25 · 773 阅读 · 2 评论 -
Crossing Number of Graphs 读书笔记
1 The Conjectures of Zarankiewicz and Hill1.1 Drawings with CrossingsIn his “Perplexities” column for The Strand Magazine, Henry Dudeney posed a puzzle he called “Water, Gas, and Electricity”, accom...原创 2020-04-21 10:27:29 · 577 阅读 · 0 评论 -
SCLP图论计划1 -“ 图”从Excel来
QuestionI have this file in Excel.poljska_mreza.xlsx It has two columns of numbers: “from vertex” and “to vertex”. Is there any way to use this file to create a graph in Maple?原创 2020-03-31 20:34:13 · 544 阅读 · 0 评论 -
Mathematica 12 图论方面需要注意的最小费用最大流函数结果
此问题来自qq群 Mathematica数理力研讨班(959910893).网络流是图论里面重要的概念之一,有关基本概念可见任何图论教材. 一个具体一点的问题是求解一个图的l两点之间最小费用最大流Mathematica 提供了函数 FindMinimumCostFlow 可是这个函数求出来的结果让人大跌眼镜。具体如下:data = Partition[{s, v1, 8, 2, s, v3,...原创 2020-03-12 22:08:38 · 691 阅读 · 0 评论 -
电阻距离求解
Networkx2.4的新功能 求电阻距离题记:即使现在掌握的经验也许到未来也会失效,可能被更好用的经验代替. 那么我们面对工具采取怎么的学习态度,去学习什么显得重要.求图的电阻距离是图论中的一类问题,Networkx2.4 内置了此功能.import networkx as nx G = nx.Graph()elist=[(0,1),(1,2),(2,3),(0,3),(0,2)]...原创 2020-03-08 22:56:05 · 1621 阅读 · 0 评论