de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph
Class KSlimGraph

java.lang.Object
  extended by de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.KSlimGraph

public class KSlimGraph
extends Object

The general-purpose slim graph structure. This structure is specially designed for use in graph algorithms for undirected graphs, because each node has only one incidence list for both the incoming and the outgoing edges. However, the direction of each edge can be obtained by a respective entry in the incidence list of the respective node.

Rating proposed yellow
(2009-12-11) msp

Constructor Summary
KSlimGraph()
           
 
Method Summary
 List<KSlimEdge> getEdges()
          Returns the edges.
 KSlimFace getExternalFace()
          Returns the externalFace.
 List<KSlimFace> getFaces()
          Returns the faces.
 float getHeight()
          Returns the height.
 List<KSlimNode> getNodes()
          Returns the nodes.
 float getWidth()
          Returns the width.
 void setExternalFace(KSlimFace theexternalFace)
          Sets the externalFace.
 void setHeight(float theheight)
          Sets the height.
 void setWidth(float thewidth)
          Sets the width.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KSlimGraph

public KSlimGraph()
Method Detail

toString

public String toString()

Overrides:
toString in class Object

getNodes

public List<KSlimNode> getNodes()
Returns the nodes.

Returns:
the nodes

getEdges

public List<KSlimEdge> getEdges()
Returns the edges.

Returns:
the edges

getFaces

public List<KSlimFace> getFaces()
Returns the faces.

Returns:
the faces

setExternalFace

public void setExternalFace(KSlimFace theexternalFace)
Sets the externalFace.

Parameters:
theexternalFace - the externalFace to set

getExternalFace

public KSlimFace getExternalFace()
Returns the externalFace.

Returns:
the externalFace

setWidth

public void setWidth(float thewidth)
Sets the width.

Parameters:
thewidth - the width to set

getWidth

public float getWidth()
Returns the width.

Returns:
the width

setHeight

public void setHeight(float theheight)
Sets the height.

Parameters:
theheight - the height to set

getHeight

public float getHeight()
Returns the height.

Returns:
the height