Ignore:
Timestamp:
06/21/13 21:04:20 (6 years ago)
Author:
gkronber
Message:

#1270 fixed compile errors in Smalltalk and GraphViz formatters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Formatters/SymbolicExpressionTreeGraphvizFormatter.cs

    r9648 r9649  
    5151    }
    5252
    53     public string Format(SymbolicExpressionTree symbolicExpressionTree) {
     53    public string Format(ISymbolicExpressionTree symbolicExpressionTree) {
    5454      int nodeCounter = 1;
    5555      StringBuilder strBuilder = new StringBuilder();
     
    6060    }
    6161
    62     private string FormatRecursively(SymbolicExpressionTreeNode node, int indentLength, ref int nodeId) {
     62    private string FormatRecursively(ISymbolicExpressionTreeNode node, int indentLength, ref int nodeId) {
    6363      // save id of current node
    6464      int currentNodeId = nodeId;
     
    7777      strBuilder.Append("node" + currentNodeId + "[label=\"" + nodeLabel + "\"");
    7878      // leaf nodes should have box shape
    79       if (node.SubTrees.Count == 0) {
     79      if (node.SubtreeCount == 0) {
    8080        strBuilder.AppendLine(", shape=\"box\"];");
    8181      } else {
     
    8484
    8585      // internal nodes or leaf nodes?
    86       foreach (SymbolicExpressionTreeNode subTree in node.SubTrees) {
     86      foreach (ISymbolicExpressionTreeNode subTree in node.Subtrees) {
    8787        // add an edge
    8888        if (Indent) strBuilder.Append(' ', indentLength);
Note: See TracChangeset for help on using the changeset viewer.