Class PlanarLayout
java.lang.Object
PlanarLayout
Planar Layout of a graph
- Version:
- feb 2021
- Author:
- Luca Castelli Aleardi (Ecole Polytechnique)
-
Field Summary
FieldsModifier and TypeFieldDescriptionInput graph to draw: no combinatorial embedding provided (only the 1-skeleton of the graph)Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> input mesh to draw: a graph provided with its combinatorial embeddingintnumber of vertices of the graphJcg.geometry.Point_2[]2D positions of the vertices of the graph defining the planar layout. -
Constructor Summary
ConstructorsConstructorDescriptionPlanarLayout(Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> mesh) Initialize the drawing: by the default all vertices are placed at the origin (0.0, 0.0)Initialize the drawing: by the default all vertices are placed at the origin (0.0, 0.0) -
Method Summary
-
Field Details
-
n
public int nnumber of vertices of the graph -
g
Input graph to draw: no combinatorial embedding provided (only the 1-skeleton of the graph) -
mesh
public Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> meshinput mesh to draw: a graph provided with its combinatorial embedding -
points
public Jcg.geometry.Point_2[] points2D positions of the vertices of the graph defining the planar layout.
Remark: vertices are indexed from 0..n-1
-
-
Constructor Details
-
PlanarLayout
public PlanarLayout(Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> mesh) Initialize the drawing: by the default all vertices are placed at the origin (0.0, 0.0)- Parameters:
mesh- the input graph+its combinatorial embedding
-
PlanarLayout
Initialize the drawing: by the default all vertices are placed at the origin (0.0, 0.0)- Parameters:
graph- the input graph (no combinatorial embedding provided)
-
-
Method Details
-
printCoordinates
public void printCoordinates()
-