lu.cs.co.graph
Interface Embedding

All Known Implementing Classes:
Miles

public abstract interface Embedding

Specifies an embedded graph (a graph whose vertices have fixed plane coordinates).


Inner Class Summary
static class Embedding.Point
           
 
Method Summary
 Embedding.Point emb(Vertex v)
          Gets the plane coordinates of a given vertex.
 Rectangle getBounds()
          Gets the bounding box (as a rectangle) of this embedding.
 

Method Detail

getBounds

public Rectangle getBounds()
Gets the bounding box (as a rectangle) of this embedding.
Returns:
a rectangle describing the bounding box of this embedding

emb

public Embedding.Point emb(Vertex v)
Gets the plane coordinates of a given vertex.
Parameters:
v - the given vertex
Returns:
the coordinates of the given vertex