package com.github.ferstl.depgraph.graph;

import com.github.ferstl.depgraph.dot.EdgeRenderer;

import static com.github.ferstl.depgraph.graph.VersionAbbreviator.abbreviateVersion;

public class SimpleDependencyEdgeRenderer implements EdgeRenderer<GraphNode> {

  private static final String SNAPSHOT_SUFFIX = "-SNAPSHOT";
  private final boolean renderVersion;

  public SimpleDependencyEdgeRenderer(boolean renderVersion) {
    this.renderVersion = renderVersion;
  }

  @Override
  public String render(GraphNode from, GraphNode to) {
    NodeResolution resolution = to.getResolution();

    if (resolution == NodeResolution.OMITTED_FOR_CONFLICT && this.renderVersion) {
      return abbreviateVersion(to.getArtifact().getVersion());
    }

    return "";
  }
}

@@ -259,69 +259,8 @@
  %7B%0A%0A
-  private static final String SNAPSHOT_SUFFIX = %22-SNAPSHOT%22;%0A
   pr

Remove unused constant