Class VertConn
java.lang.Object
|
+----VertConn
- class VertConn
- extends Object
This class defines how a vertex connected to other vertices.
-
edgeMap
- edge connection array
-
num
- number of vertices this vertex is connected to.
-
toVertices
- vertex connection array
-
VertConn()
- Constructs an empty vertex connection array.
-
VertConn(int, int, int)
- Constructs a vertex connection array to 3 vertices.
-
setEdgeMap(int, int, int)
- This function establishes mapping of edges into array of drawn edges.
num
int num
- number of vertices this vertex is connected to.
toVertices
int toVertices[]
- vertex connection array
edgeMap
int edgeMap[]
- edge connection array
VertConn
VertConn()
- Constructs an empty vertex connection array.
VertConn
VertConn(int v1,
int v2,
int v3)
- Constructs a vertex connection array to 3 vertices.
- Parameters:
- v1 - index of first vertex
- v2 - index of second vertex
- v3 - index of third vertex
setEdgeMap
void setEdgeMap(int v1,
int v2,
int v3)
- This function establishes mapping of edges into array of drawn edges. This prevents from
drawing each edge when processing each vertex.