Graphs with only directed edges (i.e. arrows)
A graph with A->B and B<-A is not allowed, since this produces
an undirected edge.
|
|
|
|
|
|
|
frozenset of vertices
|
|
|
Generator iterator
|
connect(self,
vertex,
vertices)
Iterates over digraphs produced by making vertex a
parent to subsets of vertices |
source code
|
|
|
frozenset of vertices
|
|
|
|
dfsvisit(self,
vertex,
visited,
order)
Visit unvisited vertices in depth-first fashion and append them to a
topological ordering of vertices |
source code
|
|
|
iterator
|
|
|
|
|
|
|
|
|
Generator iterator
|
|
|
List of tuples of vertices
|
|
|
List of lists of vertices
|
|
|
List
|
|
|
|
_ancestors(self,
vertex,
ancestors)
Add ancestors of vertex not in ancestors to
ancestors |
source code
|
|
|
|
_descendants(self,
vertex,
descendants)
Add descendants of vertex not already in
descendants to descendants |
source code
|
|
|
|
_minimaldfs(self,
current,
sink,
before_current,
paths)
current is last vertex on current path before_current is all previous
vertices |
source code
|
|
|
|
| _tarjan_backtrack(self,
start,
v,
marked,
marked_stack,
point_stack,
lim) |
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 _AbsDiGraph:
add_arrow,
add_arrows,
put_arrow,
put_arrows,
put_family,
remove_arrow
Inherited from Hypergraphs.Incidence:
reachable,
separates
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|