GraphClusterNodeAttribute
index
../../../../piana/code/Graph/GraphCluster/GraphClusterNodeAttribute.py

File        : GraphClusterNodeAttribute.py
Author      : Pablo Boixeda & Ramon Aragues
Creation    : 4.2005
Contents    : Implements the class of an attribute for a GraphNode object in a GraphCluster object
Called from : Programs that implements graph clustering
 
=======================================================================================================

 
Modules
       
LinearAlgebra
PianaGlobals
fgraph
getopt
numarray
piana_configuration_parameters
re
readline
sys

 
Classes
       
GraphNodeAttribute.GraphNodeAttribute
GraphClusterNodeAttribute

 
class GraphClusterNodeAttribute(GraphNodeAttribute.GraphNodeAttribute)
    Implements the class of an attribute for a GraphNode object in a GraphCluster object
 
  Methods defined here:
__init__(self, list_elements=None)
 "list_elements": a list of attributes to set into the new object
 
Attention! elements are the original attributes of the GraphNodes we are clustering
add_element_list(self, list_node_attribute_object=None)
Adds to this attribute object the elements of  "list_node_attribute_object"
 
"list_node_attribute_object": A list of GraphNodeAttribute objects that is going to be added to this cluster
get_list_elements(self)
return list of elements (elements of nodes that we are clustering)

Methods inherited from GraphNodeAttribute.GraphNodeAttribute:
__eq__(self, other)
When defining new Attribute classes, the equality operator MUST be overridden.
Otherwise, adding further attributes to existing nodes in the graph may cause
duplicated attributes.
merge_attribute(self, attribute_object, ignore_ids)
Must be overwritten by a method specific to the kind of node being used for the Graph
 
merges existing attribute with atribute_object passed as argument

 
Data
        root_nodes = {}
verbose = 0
verbose_add_edge_detailed = 0
verbose_add_edge_shallow = 0
verbose_expansion_detailed = 0
verbose_expansion_minimal = 1
verbose_expansion_shallow = 0
verbose_get_edge = 0
verbose_get_node = 0
verbose_join = 0
verbose_propagate = 0
verbose_propagate_print = 0