Graphs with only undirected edges (i.e. lines)
|
|
|
|
|
|
|
|
extend_compsub(self,
compsub,
candidates,
notset,
hypergraph)
Extend a complete subset of the graph to find cliques |
source code
|
|
|
|
twdp(self,
up=None,
monitor=False)
Exact treewidth computation from Bodlaender et al |
source code
|
|
Same class as self
|
gui_triangulate(self,
parent,
elimination_order,
original_colour='black',
eliminating_colour='red',
uneliminated_neighbour_colour='green',
eliminated_colour='grey',
fill_in_colour='blue',
width=400,
height=350,
**config)
Triangulate the graph using elimination_order and
display the process graphically. |
source code
|
|
|
|
| gui_maximum_cardinality_search(self,
parent,
choose=None,
width=400,
height=350,
**config) |
source code
|
|
|
ReducedGraphicalHypergraph
|
|
|
Boolean
|
|
|
Boolean
|
|
|
Boolean
|
|
|
|
|
|
|
put_line(self,
frm,
to)
Add a line (undirected edge) to the graph between two existing
vertices |
source code
|
|
|
|
|
|
|
| zero_fillin_check(self,
elimination_order=None) |
source code
|
|
|
|
|
(As long as zero_fillin_check=False), the list of
tuples, each tuple is an unordered pair of vertices
|
triangulate(self,
elimination_order,
zero_fillin_check=False,
modify=True)
Triangulate the graph using elimination_order |
source code
|
|
|
|
| _gui_elim_one(self,
elimination_order,
eliminated,
gc,
original_colour,
eliminating_colour,
uneliminated_neighbour_colour,
eliminated_colour,
fill_in_colour) |
source code
|
|
|
|
| _gui_maxcard_one(self,
i,
j,
alpha,
alpha_inv,
cardinality,
sets,
choose) |
source code
|
|
|
Inherited from _AbsGraph:
__eq__,
__ne__,
__str__,
add_vertex,
add_vertices,
arbitrary_vertex,
arrows,
child,
children,
copy,
delete_vertex,
diff,
discard_arrow,
discard_line,
edges,
extend_paths,
get_gui_graph_kill,
gui_display,
gui_edit,
is_neighbour,
is_parent,
is_subset_of_parents,
is_superset_of_parents,
lines,
moralise,
neighbours,
num_parents,
num_parentsets,
orphanlist,
parent,
parents,
parentsets,
paths,
put_vertex,
reinit,
remove_vertex,
set_vertex_positions,
shd,
vertex_positions,
vertexlist,
vertices
Inherited from _AbsUGraph:
add_clique,
add_line,
add_lines,
complete,
put_lines,
remove_line
Inherited from Hypergraphs.Incidence:
reachable,
separates
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|