Package it.unimi.dsi.webgraph.labelling
Interface ArcRelabelledImmutableGraph.LabelConversionStrategy
- Enclosing class:
- ArcRelabelledImmutableGraph
public static interface ArcRelabelledImmutableGraph.LabelConversionStrategy
A way to convert a label into another label.
-
Method Summary
-
Method Details
-
convert
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.
-