org.grinvin.graphs
Class DefaultEmbedding
java.lang.Object
org.grinvin.graphs.DefaultEmbedding
- Embedding, EmbeddingView
public class DefaultEmbedding
extends java.lang.Object
Default implementation of
Embedding
. Stores
coordinates in a hash table.
protected int | dimension - Dimension of this embedding.
|
dimension
protected int dimension
Dimension of this embedding.
DefaultEmbedding
public DefaultEmbedding(EmbeddingView original)
Create a copy of a given embedding which shares the same peer.
DefaultEmbedding
public DefaultEmbedding(GraphView peer,
int dimension)
Create an embedding of the given dimension for the given peer graph.
getDimension
public int getDimension()
Returns the dimension of the Euclidian space into which this graph
is embedded.
- getDimension in interface EmbeddingView