public class DependencyGraph extends org.savantbuild.util.HashGraph<DependencyGraph.Dependency,DependencyEdgeValue>
Modifier and Type | Class and Description |
---|---|
static class |
DependencyGraph.Dependency |
Modifier and Type | Field and Description |
---|---|
ReifiedArtifact |
root |
Constructor and Description |
---|
DependencyGraph(ReifiedArtifact root) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
void |
skipCompatibilityCheck(ArtifactID id) |
java.lang.String |
toDOT()
Outputs this DependencyGraph as a GraphViz DOT file.
|
java.lang.String |
toString() |
void |
versionCorrectTraversal(org.savantbuild.util.Graph.GraphConsumer<DependencyGraph.Dependency,DependencyEdgeValue> consumer)
Traverses the dependency graph in a version consistent manner.
|
public final ReifiedArtifact root
public DependencyGraph(ReifiedArtifact root)
public void skipCompatibilityCheck(ArtifactID id)
public boolean equals(java.lang.Object o)
equals
in class org.savantbuild.util.HashGraph<DependencyGraph.Dependency,DependencyEdgeValue>
public int hashCode()
hashCode
in class org.savantbuild.util.HashGraph<DependencyGraph.Dependency,DependencyEdgeValue>
public void versionCorrectTraversal(org.savantbuild.util.Graph.GraphConsumer<DependencyGraph.Dependency,DependencyEdgeValue> consumer)
B -1.1----1.2--> C -1.2----1.1--> D \--1.2----1.3---/\-1.3----2.0--> EIf we are examining B version 1.1 once we traverse to C, we will only observe D. Likewise, if we are examining B version 1.2, then we will traverse to C version 1.3 and only see E.
consumer
- The graph consumer.public java.lang.String toDOT()
public java.lang.String toString()
toString
in class java.lang.Object