public class Vertex extends Object
| Constructor and Description |
|---|
Vertex(int id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildVertex(Vertex child) |
Vertex |
cloneIt()
The method returns a deep copy of the object.
|
boolean |
equals(Object other)
(non-Javadoc)
|
int |
getAdjacencyListIndex()
The method returns the index of the associated adjacency list
|
Vertex |
getChildVertex(int i) |
int |
getColor()
The method returns the color of the vertex
|
int |
getID()
The method returns ID of the vertex
|
int |
getNumberOfChilds() |
int |
getPredecessor(int i)
The method returns the predecessor of the current vertex in the shortest path tree from some source
|
double |
getShortestPathEst()
The method returns the estimation for the shortest path from some source to this vertex
|
double |
getShortestPathEst(int i)
The method returns the estimation for the shortest path from some source to this vertex
|
boolean |
isAggregative() |
void |
setAdjacencyListIndex(int idx)
The method setup the index of the adjacency list associated with this vertex
|
void |
setColor(int color)
The method sets the color for the vertex
|
void |
setPredecessor(int p,
int i)
The method set up the predecessor of the current vertex in the shortest path tree from some source
|
void |
setShortestPathEst(double d,
int i)
The method set up the estimation for the shortest path from some source to this vertex
|
public Vertex(int id)
id - - identifier of the new vertexpublic Vertex cloneIt()
public boolean equals(Object other)
equals in class ObjectObject.equals(Object)public int getID()
public int getAdjacencyListIndex()
public double getShortestPathEst(int i)
i - - the index of shortest path estimation (there may be several estimations)public double getShortestPathEst()
public int getPredecessor(int i)
i - - the index of the predecessor (there may be several predecessors - each for one tree)public int getColor()
public Vertex getChildVertex(int i)
i - index of the childpublic int getNumberOfChilds()
public void setAdjacencyListIndex(int idx)
idx - - the index of the adjacency list of interestpublic void setShortestPathEst(double d,
int i)
d - - the estimationpublic void setPredecessor(int p,
int i)
public void setColor(int color)
color - - the value of color to be setpublic void addChildVertex(Vertex child)
public boolean isAggregative()
Copyright © 2017. All rights reserved.