Interface ArcRelabelledImmutableGraph.LabelConversionStrategy

  • Enclosing class:
    ArcRelabelledImmutableGraph

    public static interface ArcRelabelledImmutableGraph.LabelConversionStrategy
    A way to convert a label into another label.
    • Method Detail

      • convert

        void convert​(Label from,
                     Label to,
                     long source,
                     long target)
        Takes a label from and writes its content into another label to. If the types of labels are incompatible, or unapt for this strategy, an IllegalArgumentException or a ClassCastException 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.