Method Summary |
|
__init__(self,
id)
|
|
add_cluster (self,
cluster)
Add a pgraph cluster to the graph. |
|
add_edge (self,
edge,
prevent_dups)
Add a pgraph edge to the graph. |
|
add_graph (self,
other_graph)
Alias of graph_cat(). |
|
add_node (self,
node)
Add a pgraph node to the graph. |
|
del_cluster (self,
id)
Remove a cluster from the graph. |
|
del_edge (self,
id,
src,
dst)
Remove an edge from the graph. |
|
del_graph (self,
other_graph)
Alias of graph_sub(). |
|
del_node (self,
id)
Remove a node from the graph. |
List
|
edges_from (self,
id)
Enumerate the edges from the specified node. |
List
|
edges_to (self,
id)
Enumerate the edges to the specified node. |
Mixed
|
find_cluster (self,
attribute,
value)
Find and return the cluster with the specified attribute / value
pair. |
Mixed
|
find_cluster_by_node (self,
attribute,
value)
Find and return the cluster that contains the node with the specified
attribute / value pair. |
Mixed
|
find_edge (self,
attribute,
value)
Find and return the edge with the specified attribute / value
pair. |
Mixed
|
find_node (self,
attribute,
value)
Find and return the node with the specified attribute / value
pair. |
|
graph_cat (self,
other_graph)
Concatenate the other graph into the current one. |
pgraph.graph
|
graph_down (self,
from_node_id,
max_depth)
Create a new graph, looking down, from the specified node id to the
specified depth. |
|
graph_intersect (self,
other_graph)
Remove all elements from the current graph that do not exist in the
other graph. |
pgraph.graph
|
graph_proximity (self,
center_node_id,
max_depth_up,
max_depth_down)
Create a proximity graph centered around the specified node. |
|
graph_sub (self,
other_graph)
Remove the elements shared between the current graph and other graph
from the current graph. |
pgraph.graph
|
graph_up (self,
from_node_id,
max_depth)
Create a new graph, looking up, from the specified node id to the
specified depth. |
String
|
render_graph_gml (self)
Render the GML graph description. |
pydot.Dot
|
render_graph_graphviz (self)
Render the graphviz graph structure. |
String
|
render_graph_udraw (self)
Render the uDraw graph description. |
String
|
render_graph_udraw_update (self)
Render the uDraw graph update description. |
List
|
sorted_nodes (self)
Return a list of the nodes within the graph, sorted by id. |
|
update_node_id (self,
current_id,
new_id)
Simply updating the id attribute of a node will sever the edges to /
from the given node. |
Inherited from object |
|
__delattr__ (...)
x.__delattr__('name') <==> del x.name |
|
__getattribute__ (...)
x.__getattribute__('name') <==> x.name |
|
__hash__ (x)
x.__hash__() <==> hash(x) |
|
__new__ (T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |
|
__reduce__ (...)
helper for pickle |
|
__reduce_ex__ (...)
helper for pickle |
|
__repr__ (x)
x.__repr__() <==> repr(x) |
|
__setattr__ (...)
x.__setattr__('name', value) <==> x.name = value |
|
__str__ (x)
x.__str__() <==> str(x) |