コード例 #1
0
  public static void main(String[] args) {
    System.out.println("Spectral Drawing 3D");
    Graph g = AdjacencyGraph.constructDodecahedron();
    System.out.println("graph initialized");

    SpectralDrawing_3<Point_3> d = new SpectralDrawing_3<Point_3>(g);
    d.computeDrawing();
    d.draw3D();
  }
コード例 #2
0
  /** Test SpectralDrawing methods */
  public static void main(String[] args) {
    System.out.println("Spectral Drawing 2D");
    Graph g = AdjacencyGraph.constructCube();
    System.out.println("graph initialized");

    SpectralDrawing_2<Point_2> d = new SpectralDrawing_2<Point_2>(g);
    d.computeDrawing();
    d.draw2D();
  }