cage
Class NativeEmbeddableGraph
java.lang.Object
cage.NativeEmbeddableGraph
- All Implemented Interfaces:
- EmbeddableGraph
public class NativeEmbeddableGraph
- extends java.lang.Object
- implements EmbeddableGraph
Field Summary |
protected long |
nGraph
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nGraph
protected long nGraph
NativeEmbeddableGraph
public NativeEmbeddableGraph()
NativeEmbeddableGraph
public NativeEmbeddableGraph(long nGraph)
getComment
public java.lang.String getComment()
- Specified by:
getComment
in interface EmbeddableGraph
setComment
public void setComment(java.lang.String comment)
- Specified by:
setComment
in interface EmbeddableGraph
getFormat
public int getFormat()
setFormat
public void setFormat(int format)
addVertex
public void addVertex()
- Description copied from interface:
EmbeddableGraph
- Adds a vertex to this graph.
- Specified by:
addVertex
in interface EmbeddableGraph
addEdge
public void addEdge(int to)
- Description copied from interface:
EmbeddableGraph
- Adds an edge from the last added vertex to a
to
.
- Specified by:
addEdge
in interface EmbeddableGraph
- Parameters:
to
- The destination of the edge to add.
getSize
public int getSize()
- Description copied from interface:
EmbeddableGraph
- Returns the order of the graph, i.e. the number of vertices.
- Specified by:
getSize
in interface EmbeddableGraph
- Returns:
- The number of vertices in this graph.
getValency
public int getValency(int vertex)
- Description copied from interface:
EmbeddableGraph
- Returns the valency of
vertex
i.e. The number of edges that
are incident with this vertex.
- Specified by:
getValency
in interface EmbeddableGraph
- Parameters:
vertex
- The vertex for which the valency should be returned
- Returns:
- The number of edges that are incident with
vertex
.
getEdgeIterator
public EdgeIterator getEdgeIterator(int vertex)
- Specified by:
getEdgeIterator
in interface EmbeddableGraph
has2DCoordinates
public boolean has2DCoordinates()
- Specified by:
has2DCoordinates
in interface EmbeddableGraph
get2DCoordinates
public float[] get2DCoordinates(int vertex)
- Specified by:
get2DCoordinates
in interface EmbeddableGraph
get2DCoordinates
public float[][] get2DCoordinates()
- Specified by:
get2DCoordinates
in interface EmbeddableGraph
set2DCoordinates
public void set2DCoordinates(int vertex,
float[] coords)
- Specified by:
set2DCoordinates
in interface EmbeddableGraph
has3DCoordinates
public boolean has3DCoordinates()
- Specified by:
has3DCoordinates
in interface EmbeddableGraph
get3DCoordinates
public float[] get3DCoordinates(int vertex)
- Specified by:
get3DCoordinates
in interface EmbeddableGraph
get3DCoordinates
public float[][] get3DCoordinates()
- Specified by:
get3DCoordinates
in interface EmbeddableGraph
set3DCoordinates
public void set3DCoordinates(int vertex,
float[] coords)
- Specified by:
set3DCoordinates
in interface EmbeddableGraph
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable