Interface ArcRelabelledImmutableGraph.LabelConversionStrategy

Enclosing class:
ArcRelabelledImmutableGraph

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

    Modifier and Type Method Description
    void convert​(Label from, Label to, int source, int target)
    Takes a label from and writes its content into another label to.
  • Method Details

    • convert

      void convert​(Label from, Label to, int source, int 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.