1 | initial version |
The netwokx package can be used to find the entire minimum separated set.
G=Graph({1:[2,3,4,5],2:[1,3,4,5],3:[1,2,4,5],4:[1,2,3],5:[1,2,3]})
G1 = G.networkx_graph()
cutsets = list(nx.all_node_cuts(G1))
print(cutsets)
[{1, 2, 3}]
2 | No.2 Revision |
The netwokx package can be used to find the entire minimum separated set.
import networkx as nx
G=Graph({1:[2,3,4,5],2:[1,3,4,5],3:[1,2,4,5],4:[1,2,3],5:[1,2,3]})
G1 = G.networkx_graph()
cutsets = list(nx.all_node_cuts(G1))
print(cutsets)
[{1, 2, 3}]
3 | No.3 Revision |
The netwokx package can be used to find the entire minimum separated set.
import networkx as nx
G=Graph({1:[2,3,4,5],2:[1,3,4,5],3:[1,2,4,5],4:[1,2,3],5:[1,2,3]})
G1 = G.networkx_graph()
cutsets = list(nx.all_node_cuts(G1))
print(cutsets)
[{1, 2, 3}]
So G has only one minimum separated set.
4 | No.4 Revision |
The netwokx package can be used to find the entire minimum separated set.
import networkx as nx
G=Graph({1:[2,3,4,5],2:[1,3,4,5],3:[1,2,4,5],4:[1,2,3],5:[1,2,3]})
G1 = G.networkx_graph()
cutsets = list(nx.all_node_cuts(G1))
print(cutsets)
[{1, 2, 3}]
So G has only one minimum separated set.
5 | No.5 Revision |
The netwokx networkx package can be used to find the entire all minimum separated set.separating sets.
sage: import networkx as nx
G=Graph({1:[2,3,4,5],2:[1,3,4,5],3:[1,2,4,5],4:[1,2,3],5:[1,2,3]})
sage: G = Graph({1: [2, 3, 4, 5],
....: 2: [1, 3, 4, 5],
....: 3: [1, 2, 4, 5],
....: 4: [1, 2, 3],
....: 5: [1, 2, 3]})
sage: G1 = G.networkx_graph()
sage: cutsets = list(nx.all_node_cuts(G1))
print(cutsets)
sage: cutsets
[{1, 2, 3}]
[{1, 2, 3}]
So G has only one minimum separated set.
all_node_cutsSee the documentation: