| Constructor and Description |
|---|
DSLLayouter(java.util.List<V> vertices,
java.util.List<E> edges,
java.lang.String userDescription)
Constructs the DSL layouter given lists of graph's vertices and edges
and textual description of the desired layout conforming to the dsl
|
| Modifier and Type | Method and Description |
|---|---|
Drawing<V,E> |
layout()
Lays out the graph and returns a mapping of vertices and edges to their positions
|
public DSLLayouter(java.util.List<V> vertices, java.util.List<E> edges, java.lang.String userDescription)
vertices - A list of graph's verticesedges - A list of graph's edgesuserDescription - A textual description of the desired layout conforming to the dslpublic Drawing<V,E> layout() throws DSLException
DSLException - If the provided textual description does not conform to the dsl