Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::ClusterPlanRep Class Reference

#include <ClusterPlanRep.h>

Inheritance diagram for ogdf::ClusterPlanRep:

ogdf::PlanRep ogdf::GraphCopy ogdf::Graph

List of all members.

Public Member Functions

 ClusterPlanRep (const ClusterGraphAttributes &acGraph, const ClusterGraph &clusterGraph)
virtual ~ClusterPlanRep ()
void initCC (int i)
 Initializes the planarized representation for connected component i.
void setClusterBoundary (edge e)
bool isClusterBoundary (edge e)
const ClusterGraphgetClusterGraph () const
void insertEdgePathEmbedded (edge eOrig, CombinatorialEmbedding &E, const SList< adjEntry > &crossedEdges)
void ModelBoundaries ()
adjEntry externalAdj ()
virtual void expand (bool lowDegreeExpand=false)
virtual void expandLowDegreeVertices (OrthoRep &OR)
virtual edge split (edge e)
 Splits edge e.
cluster clusterOfEdge (edge e)
int ClusterID (node v) const
int ClusterID (edge e) const
cluster clusterOfIndex (int i)
cluster clusterOfDummy (node v)
void writeGML (const char *fileName, const Layout &drawing)
void writeGML (const char *fileName)
void writeGML (ostream &os, const Layout &drawing)

Protected Member Functions

void convertClusterGraph (cluster act, AdjEntryArray< edge > &currentEdge, AdjEntryArray< int > &outEdge)
void insertBoundary (cluster C, AdjEntryArray< edge > &currentEdge, AdjEntryArray< int > &outEdge, bool clusterIsLeaf)
void reinsertEdge (edge e)

Private Member Functions

edgeType clusterPattern ()

Private Attributes

const ClusterGraphm_pClusterGraph
adjEntry m_rootAdj
EdgeArray< int > m_edgeClusterID
NodeArray< int > m_nodeClusterID
HashArray< int, clusterm_clusterOfIndex


Detailed Description

Definition at line 71 of file ClusterPlanRep.h.


Constructor & Destructor Documentation

ogdf::ClusterPlanRep::ClusterPlanRep ( const ClusterGraphAttributes acGraph,
const ClusterGraph clusterGraph 
)

virtual ogdf::ClusterPlanRep::~ClusterPlanRep (  )  [inline, virtual]

Definition at line 79 of file ClusterPlanRep.h.


Member Function Documentation

void ogdf::ClusterPlanRep::initCC ( int  i  ) 

Initializes the planarized representation for connected component i.

This initialization is always required. After performing this initialization, the planarized representation represents a copy of the i-th connected component of the original graph, where connected components are numbered 0,1,2,...

Reimplemented from ogdf::PlanRep.

void ogdf::ClusterPlanRep::setClusterBoundary ( edge  e  )  [inline]

Definition at line 84 of file ClusterPlanRep.h.

bool ogdf::ClusterPlanRep::isClusterBoundary ( edge  e  )  [inline]

Definition at line 87 of file ClusterPlanRep.h.

const ClusterGraph& ogdf::ClusterPlanRep::getClusterGraph (  )  const [inline]

Definition at line 90 of file ClusterPlanRep.h.

void ogdf::ClusterPlanRep::insertEdgePathEmbedded ( edge  eOrig,
CombinatorialEmbedding E,
const SList< adjEntry > &  crossedEdges 
)

re-inserts edge eOrig by "crossing" the edges in crossedEdges; splits each edge in crossedEdges Precond.: eOrig is an edge in the original graph, the edges in crossedEdges are in this graph, cluster boundaries are modelled as edge paths

Parameters:
eOrig,: Original edge to be inserted
crossedEdges,: Edges that are crossed by this insertion
E,: The embedding in which the edge is inserted

Reimplemented from ogdf::PlanRep.

void ogdf::ClusterPlanRep::ModelBoundaries (  ) 

adjEntry ogdf::ClusterPlanRep::externalAdj (  )  [inline]

Definition at line 109 of file ClusterPlanRep.h.

virtual void ogdf::ClusterPlanRep::expand ( bool  lowDegreeExpand = false  )  [virtual]

Reimplemented from ogdf::PlanRep.

virtual void ogdf::ClusterPlanRep::expandLowDegreeVertices ( OrthoRep OR  )  [virtual]

Reimplemented from ogdf::PlanRep.

virtual edge ogdf::ClusterPlanRep::split ( edge  e  )  [inline, virtual]

Splits edge e.

Reimplemented from ogdf::PlanRep.

Definition at line 121 of file ClusterPlanRep.h.

cluster ogdf::ClusterPlanRep::clusterOfEdge ( edge  e  )  [inline]

Definition at line 136 of file ClusterPlanRep.h.

int ogdf::ClusterPlanRep::ClusterID ( node  v  )  const [inline]

Definition at line 167 of file ClusterPlanRep.h.

int ogdf::ClusterPlanRep::ClusterID ( edge  e  )  const [inline]

Definition at line 168 of file ClusterPlanRep.h.

cluster ogdf::ClusterPlanRep::clusterOfIndex ( int  i  )  [inline]

Definition at line 169 of file ClusterPlanRep.h.

cluster ogdf::ClusterPlanRep::clusterOfDummy ( node  v  )  [inline]

Definition at line 171 of file ClusterPlanRep.h.

void ogdf::ClusterPlanRep::writeGML ( const char *  fileName,
const Layout drawing 
)

void ogdf::ClusterPlanRep::writeGML ( const char *  fileName  ) 

void ogdf::ClusterPlanRep::writeGML ( ostream &  os,
const Layout drawing 
)

void ogdf::ClusterPlanRep::convertClusterGraph ( cluster  act,
AdjEntryArray< edge > &  currentEdge,
AdjEntryArray< int > &  outEdge 
) [protected]

void ogdf::ClusterPlanRep::insertBoundary ( cluster  C,
AdjEntryArray< edge > &  currentEdge,
AdjEntryArray< int > &  outEdge,
bool  clusterIsLeaf 
) [protected]

void ogdf::ClusterPlanRep::reinsertEdge ( edge  e  )  [protected]

edgeType ogdf::ClusterPlanRep::clusterPattern (  )  [inline, private]

Definition at line 204 of file ClusterPlanRep.h.


Member Data Documentation

const ClusterGraph* ogdf::ClusterPlanRep::m_pClusterGraph [private]

Definition at line 202 of file ClusterPlanRep.h.

adjEntry ogdf::ClusterPlanRep::m_rootAdj [private]

Definition at line 206 of file ClusterPlanRep.h.

EdgeArray<int> ogdf::ClusterPlanRep::m_edgeClusterID [private]

Definition at line 211 of file ClusterPlanRep.h.

NodeArray<int> ogdf::ClusterPlanRep::m_nodeClusterID [private]

Definition at line 212 of file ClusterPlanRep.h.

HashArray<int, cluster> ogdf::ClusterPlanRep::m_clusterOfIndex [private]

Definition at line 215 of file ClusterPlanRep.h.


The documentation for this class was generated from the following file:

© 1999-2007 by oreas GmbH, © 2005-2007 by University Dortmund and University Cologne.

Generated on Thu Nov 22 19:40:09 2007 by doxygen 1.5.4.