| Home | Trees | Indices | Help |
|
|---|
|
|
Abstract class with method suitable for all types of graph
|
|||
|
|||
| Boolean |
|
||
| Boolean |
|
||
|
|||
| String |
|
||
|
|||
|
|||
| Anything immutable |
|
||
List of (vertex,child) tuples
|
|
||
| An immutable type (typically a String) |
|
||
| Set |
|
||
Same class as self
|
|
||
|
|||
|
|||
|
|||
|
|||
| List |
|
||
| Generator iterator |
|
||
|
|||
|
|||
| GraphCanvas |
|
||
|
|||
| Boolean |
|
||
| List |
|
||
| UGraph object |
|
||
| Set |
|
||
| List |
|
||
| An immutable type (typically a String) |
|
||
| Integer |
|
||
|
|||
| Set |
|
||
|
|||
| Generator iterator |
|
||
|
|||
|
|||
|
|||
|
|||
| Int |
|
||
| Boolean |
|
||
| Boolean |
|
||
| Dictionary |
|
||
| List |
|
||
| Set |
|
||
|
|||
|
Inherited from Inherited from |
|||
|
|||
_edit_help_msg =
|
|||
|
|||
|
Inherited from |
|||
|
|||
Graph initialisation
|
Graphs of different classes are considered equal if they have the same vertices, arrows and lines
|
Graphs of different classes are considered equal if they have the same vertices, arrows and lines
|
Formal string representation of a graph
|
Pretty string representation of a graph Vertices, arrows and edges are presented in sorted order
|
Adds a vertex to a graph
|
Add a collection of vertices to the graph
|
Returns an arbitrary vertex in the graph
|
Return a list of arrows
|
Return an arbitrary child of
|
Return the children of vertex
|
Return a copy a graph
|
Deletes a vertex from a graph
|
Discard any arrow between two existing vertices If there is no such arrow nothing happens
|
Discard the line between two existing vertices (if it exists) If there is no such line nothing happens
|
Return a list of the edges in the graph
|
Iterates over paths which can be produced by adding one vertex to a
path in Each path is actually a tuple
|
Set the graph to match the one displayed on a GUI, and perhaps kill the GUI
|
Edit a graph using a GUI
|
Display a graph using a GUI
|
Return whether
|
Return whether
|
Returns an ordered list of lines in the graph
|
Return a moralised version of the graph All parents are married, and directions are dropped. The moral graph
will share its vertex co-ordinates, if any, with
|
Return the set (not a copy) of neighbours of a vertex Neighbours are connected by undirected edges (lines)
|
Return a list containing all nodes with no parents
|
Return an arbitrary parent of vertex
|
Return the number of parents of vertex
|
Iterate over the number of parents of vertices (In no particular order) |
Return (a copy of) the parents of vertex
|
Iterates over paths starting with Each path is actually a tuple
|
Adds a vertex to a graph or does nothing if it already exists
|
(Re-)initialise a graph Pre-existing state will be deleted.
|
Remove a vertex
|
Position each vertex according to the co-ordinates in
|
Structural Hamming distance to graph b from +1 for a missing edge (directed or not) +1 for an incorrectly oriented edge +1 for an extra edge (directed or not) Only works on simple graphs (those without multiple connections between vertices)
|
Return whether
|
Return whether
|
Return a dictionary mapping each vertex to a co-ordinate for display
|
Returns a list of the vertices in the graph
|
Returns the set of vertices in the graph Can be altered without affecting
|
|
|||
_edit_help_msg
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Oct 15 15:34:07 2009 | http://epydoc.sourceforge.net |