简体   繁体   English

从图的最小切线中查找将系统分解为不相交集的排列?

[英]Mincuts from graphs to find permutations that break the system into disjoint sets?

Assume an undirected system, graph where you want to find out elements in their permutations that makes the system disjoint such that each set is minimum. 假定一个无向系统,在其中要查找元素的排列的图形,该排列使系统不相交,从而使每个集合最小。 This graph has two special nodes: sink and source that cannot be in the elements. 该图具有两个特殊节点:不能在元素中的接收器和源。

How can you computationally find the minimum cuts given some graph G=(V,E)? 给定某些图形G =(V,E),如何计算找到最小割口?

Feel free to choose any method to calculate mincuts computationally from graphs. 随意选择任何方法来从图形计算最小切分。 I list below a simple example, relevant research, models, storage methods, lemmas, theorems -- and something about visualisation and computing on which this thread is focused on. 我在下面列出了一个简单的示例,相关的研究,模型,存储方法,引理,定理-以及与该线程相关的可视化和计算方面的内容。 Next step after the simple example is the parametrisation of the graphical model and then computation. 简单示例之后的下一步是图形模型的参数化,然后进行计算。

Simple example with Python and Cartesian product Python和笛卡尔积的简单示例

Assume a 3x2x2 graph with 3 parallel where 1st branch with 3 things, 2nd branch with 2 things and last branch 2 things. 假设一个具有3个并行的3x2x2图,其中第一个分支包含3个对象,第二个分支包含2个对象,最后一个分支包含2个对象。 The minimum cuts are {{1,4,6},{1,4,7},{1,5,6},{1,5,7},{2,4,6},{2,4,7},{2,5,6},{2,5,7},{3,4,6},{3,4,7},{3,5,6},{3,5,7}} . 最小切割为{{1,4,6},{1,4,7},{1,5,6},{1,5,7},{2,4,6},{2,4, 7},{2,5,6},{2,5,7},{3,4,6},{3,4,7},{3,5,6},{3,5,7} }

在此处输入图片说明

import itertools;

somelists = [
   [1, 2, 3],
   [4, 5],
   [6, 7]
]

print list(itertools.product(*somelists))

Computing 电脑运算

  • General question How to analyse a sparse adjacency matrix? 一般问题如何分析稀疏邻接矩阵? but relevant because graphs often are sparse. 但很重要,因为图经常是稀疏的。

  • Graph Complement useful in finding mincuts: a trial with Mathematica below but notice that some bugs in Mathematica found in at least 10.1 related to mincut and VertexConnectivity commands. Graph Complement在查找mincut时很有用:下面在Mathematica上进行的试用,但是请注意,至少在10.1中发现的Mathematica中的一些错误与mincut和VertexConnectivity命令有关。

Mathematics 数学

Visualising series-parallel graphs with sink and source 使用汇和源可视化串并联图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM