Package graphStructure

Examples of graphStructure.Graph


  public void update()
  {
    if ( isVisible() )
    {
      Graph g = editorWindow.getGraphEditor().getGraph();
      totalNodesLabel.setText("Total Nodes: " + g.getNumNodes());
      totalEdgesLabel.setText("Total Edges: " + g.getNumEdges());
      generatedEdgesLabel.setText("Generated Edges: " + g.getNumGeneratedEdges());
      curvedEdgesLabel.setText("Curved Edges: " + g.getNumCurvedEdges());
      boolean planar = PlanarityOperation.isPlanar(g);
      planarLabel.setText("Planar?: " + planar);
      maximalPlanarLabel.setText("Maximal Planar?: " + (planar &&
        g.getNumEdges() == g.getNumNodes() * 3 - 6));
      connectedCountLabel.setText("Num Connected Components: " +
        ConnectivityOperation.getConnectedComponents(g).size());
      biconnectedCountLabel.setText("Num Biconnected Components: " +
        BiconnectivityOperation.getBiconnectedComponents(g).size());
    }
View Full Code Here

TOP

Related Classes of graphStructure.Graph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.