cage
Interface EmbeddableGraph

All Known Implementing Classes:
NativeEmbeddableGraph

public interface EmbeddableGraph


Field Summary
static char embedAlways
           
static char embedIfRequired
           
 
Method Summary
 void addEdge(int to)
          Adds an edge from the last added vertex to a to.
 void addVertex()
          Adds a vertex to this graph.
 float[][] get2DCoordinates()
           
 float[] get2DCoordinates(int vertex)
           
 float[][] get3DCoordinates()
           
 float[] get3DCoordinates(int vertex)
           
 java.lang.String getComment()
           
 EdgeIterator getEdgeIterator(int vertex)
           
 int getSize()
          Returns the order of the graph, i.e.
 int getValency(int vertex)
          Returns the valency of vertex i.e.
 boolean has2DCoordinates()
           
 boolean has3DCoordinates()
           
 void set2DCoordinates(int vertex, float[] coords)
           
 void set3DCoordinates(int vertex, float[] coords)
           
 void setComment(java.lang.String comment)
           
 

Field Detail

embedAlways

static final char embedAlways
See Also:
Constant Field Values

embedIfRequired

static final char embedIfRequired
See Also:
Constant Field Values
Method Detail

getComment

java.lang.String getComment()

setComment

void setComment(java.lang.String comment)

addVertex

void addVertex()
Adds a vertex to this graph.


addEdge

void addEdge(int to)
Adds an edge from the last added vertex to a to.

Parameters:
to - The destination of the edge to add.

getSize

int getSize()
Returns the order of the graph, i.e. the number of vertices.

Returns:
The number of vertices in this graph.

getValency

int getValency(int vertex)
Returns the valency of vertex i.e. The number of edges that are incident with this vertex.

Parameters:
vertex - The vertex for which the valency should be returned
Returns:
The number of edges that are incident with vertex.

getEdgeIterator

EdgeIterator getEdgeIterator(int vertex)

has2DCoordinates

boolean has2DCoordinates()

get2DCoordinates

float[] get2DCoordinates(int vertex)

get2DCoordinates

float[][] get2DCoordinates()

set2DCoordinates

void set2DCoordinates(int vertex,
                      float[] coords)

has3DCoordinates

boolean has3DCoordinates()

get3DCoordinates

float[] get3DCoordinates(int vertex)

get3DCoordinates

float[][] get3DCoordinates()

set3DCoordinates

void set3DCoordinates(int vertex,
                      float[] coords)