| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Clustering --+
|
OverlappingClustering --+
|
object --+ |
| |
Clustering --+ |
| |
VertexClustering --+
|
OverlappingVertexClustering
Overlapping clustering of the vertex set of a graph.
This class extends OverlappingClustering by linking it to a specific Graph object and by optionally storing the modularity score of the clustering.
Modularity in the case of overlapping communities is defined similarly to the nonoverlapping case, but the statement that ``vertex i and j is in the same community'' (expressed by the Kronecker-delta at the end of the formula in the original paper) is replaced by the statement that ``vertex i and j are both contained by at least one of the communities''.Note:
since this class is linked to a Graph, destroying
the graph by the del operator does not free the memory
occupied by the graph if there exists an OverlappingVertexClustering that references the Graph.
|
|||
|
__init__(self,
graph,
membership=None,
modularity=None,
params={}) Creates an overlapping clustering object for a given graph. |
||
|
recalculate_modularity(self) Recalculates the stored modularity value. |
||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Recalculates the stored modularity value. This method must be called before querying the modularity score of the clustering through the class membermodularity or
q if the graph has been modified (edges have been added or
removed) since the creation of the OverlappingVertexClustering object.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Thu Feb 14 12:44:01 2008 | http://epydoc.sourceforge.net |