Package classycle.graph

Examples of classycle.graph.GraphAttributes


    {
      String[] values = new String[7];
      values[0] = createName(component);
      values[1] = Integer.toString(component.getNumberOfVertices());
      values[2] = Integer.toString(component.getLongestWalk());
      GraphAttributes attributes = (GraphAttributes) component.getAttributes();
      values[3] = Integer.toString(attributes.getGirth());
      values[4] = Integer.toString(attributes.getRadius());
      values[5] = Integer.toString(attributes.getDiameter());
      values[6] = Integer.toString(attributes.getBestFragmentSize());
      getStrongComponentElementTemplate().format(values, result, null);

      renderClasses(component, result);
      renderVertices(attributes.getCenterVertices(), result,
                     getCenterNodesElementName());
      renderVertices(attributes.getBestFragmenters(), result,
                     getBestFragmentersElementName());
      result.append("    </").append(getStrongComponentElementName())
            .append(">\n");
    }
    return new String(result);
View Full Code Here


   * more than one vertex. If <tt>component</tt> contains
   * only a class and its inner classes the name is the fully-qualified
   * class name of the outer class extended by "and inner classes".
   */
  public static String createName(StrongComponent component) {
    GraphAttributes ga = (GraphAttributes) component.getAttributes();
    Vertex fragmenter = ga.getBestFragmenters()[0];
    String result = ((NameAttributes) fragmenter.getAttributes()).getName();
    //String result = component.getVertex(0).getAttributes().toString();
    if (component.getNumberOfVertices() > 1) {
      AtomicVertex vertex = component.getVertex(0);
      NameAttributes attributes = (NameAttributes) vertex.getAttributes();
View Full Code Here

TOP

Related Classes of classycle.graph.GraphAttributes

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.