Package cdc.graphs.impl.tests
Interface TestEdge<N extends TestNode>
- All Superinterfaces:
GraphEdge<N>
- All Known Implementing Classes:
TestGraphHeavyEdge,TestGraphLightEdge
-
Method Summary
Modifier and TypeMethodDescriptiondefault intgetLabel()getName()default booleanhasSameDefinition(TestEdge<? extends TestNode> edge) voidSets the edge label.
-
Method Details
-
getName
String getName()- Returns:
- The edge name (identifier-like).
-
getLabel
String getLabel()- Returns:
- The edge label.
-
setLabel
Sets the edge label.- Parameters:
label- The label.
-
getDefinitionHashCode
default int getDefinitionHashCode()- Returns:
- A hash code based on definition of this edge.
-
hasSameDefinition
- Parameters:
edge- The other edge.- Returns:
trueif this edge andedgehave the same definition.
-