Method Summary |
|
__init__ (self,
uid_start)
Initialize internal member variables. |
|
__module_test__ (self)
Run a few basic tests to ensure the class is working. |
Bool
|
add_cluster (self,
cluster)
Adds a cluster object to internal cluster list. |
Bool
|
add_edge (self,
edge)
Adds an edge object to internal edges list. |
Bool
|
add_node (self,
node)
Adds a node object to internal nodes list. |
|
del_cluster (self,
index)
Delete a cluster from the internal list by it's index. |
|
del_edge (self,
index)
Delete an edge from the internal list by it's index. |
|
del_node (self,
index)
Delete a node from the internal list by it's index. |
gml_cluster
|
find_cluster_by_node_id (self,
node_id)
Locate the cluster that contains the specified node ID. |
gml_node
|
find_node_by_address (self,
node_address)
Locate the node with the specified node address within in the internal
list. |
gml_node
|
find_node_by_id (self,
node_id)
Locate the node with the specified node ID within in the internal
list. |
gml_cluster
|
get_cluster (self,
index)
Return the cluster at the specified index. |
gml_edge
|
get_edge (self,
index)
Return the edge at the specified index. |
gml_node
|
get_node (self,
index)
Return the node at the specified index. |
Integer
|
num_clusters (self)
Return the cluster count for the graph. |
Integer
|
num_edges (self)
Return the edge count for the graph. |
Integer
|
num_nodes (self)
Return the node count for the graph. |
|
parse (self,
gml_definition)
Open the specified GML file and parse out the node, edge and cluster
components. |
|
parse_file (self,
filename)
Open the specified GML file and parse out the node, edge and cluster
components. |
|
parser_define (self)
Define the pyparsing GML parser definition. |
|
parser_strip_quotes (self,
original_string,
location,
tokens)
This routine is used to strip quotes from matched GML element
strings. |
|
process_cluster (self,
original_string,
location,
tokens)
This routine is called upon successful matching of cluster elements
and is protyped as per the pyparsing specification. |
|
process_edge (self,
original_string,
location,
tokens)
This routine is called upon successful matching of edge elements and
is protyped as per the pyparsing specification. |
|
process_node (self,
original_string,
location,
tokens)
This routine is called upon successful matching of node elements and
is protyped as per the pyparsing specification. |
String
|
render (self)
Render the GML graph description. |
|
render_to_file (self,
filename)
Render the entire GML graph description. |
Bool
|
replace_node (self,
index,
node)
Adds a node object to internal nodes list. |