Interface ArcRelabelledImmutableGraph.LabelConversionStrategy
-
- Enclosing class:
- ArcRelabelledImmutableGraph
public static interface ArcRelabelledImmutableGraph.LabelConversionStrategyA way to convert a label into another label.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconvert(Label from, Label to, long source, long target)Takes a labelfromand writes its content into another labelto.
-
-
-
Method Detail
-
convert
void convert(Label from, Label to, long source, long target)
Takes a labelfromand writes its content into another labelto. If the types of labels are incompatible, or unapt for this strategy, anIllegalArgumentExceptionor aClassCastExceptionwill be thrown.- Parameters:
from- source label.to- target label.source- the source node of the arc labelled by the two labels.target- the target node of the arc labelled by the two labels.
-
-