org.grinvin
Interface EmbeddingView
- Embedding, EmbeddingModel, MutableEmbeddingModel
- DefaultEmbedding, DefaultEmbeddingModel, TransformedEmbedding
public interface EmbeddingView
Interface representing a embedding of a graph into Euclidian n-space.
The abstract graph for which this is an embedding is called
the
peer of this embedding and is of type
GraphView
.
Note that the same abstract graph may act as a peer to different
embedded graphs at the same time.
When the peer graph is mutable, every embedding is supposed to also keep
track of the coordinates of the zombie vertices of that peer,
i.e., vertices that used to belong to the graph but were removed later.
This interface only provides read access to the embedded graph. Use the interface
Embedding
if you also need write access.
getCoordinates
public double[] getCoordinates(Vertex v)
Return the coordinates of the given vertex.
getDimension
public int getDimension()
Returns the dimension of the Euclidian space into which this graph
is embedded.
getPeer
public GraphView getPeer()
Returns the peer graph for this embedding.