Class ArtifactGraph

java.lang.Object
org.savantbuild.util.HashGraph<ReifiedArtifact,String>
org.savantbuild.dep.graph.ArtifactGraph
All Implemented Interfaces:
org.savantbuild.util.Graph<ReifiedArtifact,String>

public class ArtifactGraph extends org.savantbuild.util.HashGraph<ReifiedArtifact,String>
This class is an artifact graph that stores the relationship between artifacts. After a DependencyGraph has been built, the process of upgrading all dependencies to a single version and pruning unused dependencies results in an ArtifactGraph.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.savantbuild.util.HashGraph

    org.savantbuild.util.HashGraph.HashEdge<T extends Object,U extends Object>, org.savantbuild.util.HashGraph.HashNode<T extends Object,U extends Object>

    Nested classes/interfaces inherited from interface org.savantbuild.util.Graph

    org.savantbuild.util.Graph.BasePath<T extends Object>, org.savantbuild.util.Graph.Edge<T extends Object,U extends Object>, org.savantbuild.util.Graph.EdgeFilter<T extends Object,U extends Object>, org.savantbuild.util.Graph.GraphConsumer<T extends Object,U extends Object>, org.savantbuild.util.Graph.GraphVisitor<T extends Object,U extends Object>, org.savantbuild.util.Graph.Path<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    Outputs this DependencyGraph as a GraphViz DOT file.
     

    Methods inherited from class org.savantbuild.util.HashGraph

    addEdge, addNode, clearEdges, contains, find, find, getInboundEdges, getNode, getOutboundEdges, getPaths, prune, removeEdge, removeNode, size, traverse, traverse, traverseUp, traverseUp, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.savantbuild.util.HashGraph<ReifiedArtifact,String>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.savantbuild.util.HashGraph<ReifiedArtifact,String>
    • toDOT

      public String toDOT()
      Outputs this DependencyGraph as a GraphViz DOT file.
      Returns:
      The DOT file String.
    • toString

      public String toString()
      Overrides:
      toString in class Object