public class AccessibleID
extends java.lang.Object
Graph
object like a Vertex
or an Edge
.
Graph
manages and allocates the identifiers to the objects internally. Using an AccessibleID
it is possible
to change the identifier of a graph object but this has to be done carefully. So it is not recommended to use this class outside
of the LAVESDK although it is public, which has to do with the fact that it must be usable from other packages of the SDK.Constructor and Description |
---|
AccessibleID(Edge edge)
Creates a new accessible identifier based on an
Edge . |
AccessibleID(Vertex vertex)
Creates a new accessible identifier based on a
Vertex . |
Modifier and Type | Method and Description |
---|---|
void |
modify(int newID)
Modifies the identifier of the related graph object.
|
public AccessibleID(Vertex vertex) throws java.lang.IllegalArgumentException
Vertex
.vertex
- the vertex its id should be modifiedjava.lang.IllegalArgumentException
- public final void modify(int newID) throws java.lang.IllegalArgumentException
newID
- the new identifierjava.lang.IllegalArgumentException
- < 1