The Cartesian Product of graphs

You can edit the graphs G and H of the left column. Then click the update button. The applet will show you the Cartesian Product of G and H. To add a vertex, you can double clicking on a empty space. To add an edge, you first select a vertex, (release the button) and drag it onto the target vertex. If you don't release the button, the vertex is moved to the new place.

    Source Codes
  1. Selectable.java
  2. Label.java
  3. Vertex.java
  4. Edge.java
  5. HalfEdge.java
  6. Graph.java
  7. GraphPanel.java
  8. GraphProduct.java

Copyright: Linyuan Lu, 2003