Interface ArcRelabelledImmutableGraph.LabelConversionStrategy
-
- Enclosing class:
- ArcRelabelledImmutableGraph
public static interface ArcRelabelledImmutableGraph.LabelConversionStrategy
A way to convert a label into another label.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
convert(Label from, Label to, long source, long target)
Takes a labelfrom
and writes its content into another labelto
.
-
-
-
Method Detail
-
convert
void convert(Label from, Label to, long source, long target)
Takes a labelfrom
and writes its content into another labelto
. If the types of labels are incompatible, or unapt for this strategy, anIllegalArgumentException
or aClassCastException
will 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.
-
-