| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Graph
Crisp graph class (used for alpha cuts and crisp methods).
|
|||
|
_setcls set() -> new empty set object set(iterable) -> new set object |
|||
|
|||
|
|||
str
|
|
||
str
|
|
||
|
|||
|
|||
|
|||
|
|||
set
|
|
||
set
|
|
||
float
|
|
||
list
|
|
||
|
|||
|
|||
bool
|
|
||
bool
|
|
||
bool
|
|
||
bool
|
|
||
bool
|
|
||
bool
|
|
||
bool
|
|
||
|
|||
bool
|
|
||
set
|
|
||
bool
|
|
||
list
|
|
||
list, float
|
|
||
dict of dict of double
|
|
||
| Graph |
|
||
| Graph |
|
||
|
Inherited from |
|||
|
|||
|
|||
|
|||
bool
|
directed Return whether this graph is directed. |
||
|
Inherited from |
|||
|
|||
Construct a crisp graph from optional iterables.
|
Return the canonical representation of a graph.
|
Return the string representation of a graph.
|
Add a vertex to the graph.
|
Remove a vertex and all edges connected to it from the graph.
|
Add an edge to the graph.
|
Remove an edge from the graph by tail and head.
|
Return a set of edges with tail and/or head optionally specified.
|
Return the weight of an edge. Returns 1 for the base unweighted graph.
|
Return a list of edges, sorted in ascending order by weight, with tail and/or head optionally specified.
|
Connect a pair of vertices with a new edge. Convenience wrapper for add_edge().
|
Disconnect a pair of vertices by removing the edge between them. Convenience wrapper for remove_edge().
|
Compare two graphs for equality. Does not recognize isomorphism (vertex identifiers must be the same).
|
Compare two graphs for inequality.
|
Report whether another graph contains this graph.
|
Report whether this graph contains another graph.
|
Report whether another graph contains this graph.
|
Report whether this graph contains another graph.
|
Report whether another graph strictly contains this graph.
|
Report whether this graph strictly contains another graph.
|
Check that the other argument to a binary operation is also a graph, raising a TypeError otherwise.
|
Report whether two vertices are adjacent (directly connected by an edge).
|
Return a set of vertices which are adjacent to the specified vertex.
|
Report whether two vertices are connected. Uses a breadth-first search algorithm.
|
Dijkstra's algorithm (shortest paths from start vertex to all other vertices).
|
Find the shortest path from the start vertex to the end vertex using Dijkstra's algorithm.
|
Floyd-Warshall algorithm (shortest path length between all pairs of vertices).
|
Minimum spanning tree (Kruskal's algorithm).
|
Shortest path subgraph, containing only strong edges (edges which form part of a shortest path between some pair of vertices).
|
|
|||
directedReturn whether this graph is directed. This should only be set by the constructor and is read-only afterward.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Jan 21 14:08:04 2011 | http://epydoc.sourceforge.net |