class AmbiguateProperties.PropertyGraph extends java.lang.Object implements AdjacencyGraph<AmbiguateProperties.Property,java.lang.Void>
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<AmbiguateProperties.PropertyGraphNode> |
nodes |
Constructor and Description |
---|
PropertyGraph(java.util.ArrayList<AmbiguateProperties.PropertyGraphNode> nodes) |
Modifier and Type | Method and Description |
---|---|
void |
clearNodeAnnotations()
Makes each node's annotation null.
|
GraphNode<AmbiguateProperties.Property,java.lang.Void> |
getNode(AmbiguateProperties.Property property)
Gets a node from the graph given a value.
|
java.util.List<AmbiguateProperties.PropertyGraphNode> |
getNodes()
Gets an immutable list of all nodes.
|
int |
getWeight(AmbiguateProperties.Property value)
Returns a weight for the given value to be used in ordering nodes, e.g.
|
SubGraph<AmbiguateProperties.Property,java.lang.Void> |
newSubGraph()
Returns an empty SubGraph for this Graph.
|
private final java.util.ArrayList<AmbiguateProperties.PropertyGraphNode> nodes
PropertyGraph(java.util.ArrayList<AmbiguateProperties.PropertyGraphNode> nodes)
public java.util.List<AmbiguateProperties.PropertyGraphNode> getNodes()
AdjacencyGraph
getNodes
in interface AdjacencyGraph<AmbiguateProperties.Property,java.lang.Void>
public GraphNode<AmbiguateProperties.Property,java.lang.Void> getNode(AmbiguateProperties.Property property)
AdjacencyGraph
Object.equals
.getNode
in interface AdjacencyGraph<AmbiguateProperties.Property,java.lang.Void>
property
- The node's value.public SubGraph<AmbiguateProperties.Property,java.lang.Void> newSubGraph()
AdjacencyGraph
newSubGraph
in interface AdjacencyGraph<AmbiguateProperties.Property,java.lang.Void>
public void clearNodeAnnotations()
AdjacencyGraph
clearNodeAnnotations
in interface AdjacencyGraph<AmbiguateProperties.Property,java.lang.Void>
public int getWeight(AmbiguateProperties.Property value)
AdjacencyGraph
GraphColoring
.getWeight
in interface AdjacencyGraph<AmbiguateProperties.Property,java.lang.Void>