| |
- RS_rec_tree_dec(G, W, k)
- Main recursive subroutine of the tree decomposition algorithm.
- RS_tree_dec(G, k=None)
- Computes approximate tree-decomposition of G of width at most 4tw(G)+1 by
recursively separating the graph.
- boundary(G, S, C)
- G graph, S,C sets of vertices.
Computes neighbours of C in S.
- ceil(...)
- ceil(x)
Return the ceiling of x as a float.
This is the smallest integral value >= x.
- create_game_graph(G, k)
- Creates game graph for the robber and cops game with k+1 cops on G.
- game_tree_dec(G, k=None)
- Computes tree decomposition of width at most k through the robber and cops
game.
- partition(W, low, high)
- Generates all partitions (X,Y) of W such that low <= |X| <= high.
- separation(G, W, k)
- G=(V,E) graph, W subset of W of size 3k+1. Method computes separator S of
size at most k+1 such that each component of G-S contains at most 2k
elements of W.
- separator(G, X, Y, k=-1)
- Return set S that separates X from Y of minimum size. Optional argument k
is an upper bound for the size of S; if no separator of size at most k
exists then 'None' is returned.
- sublists(X, k)
- Generates all sublists of size at most k of list X.
|