Interface EdgeDecoder<V>

  • Type Parameters:
    V - the type of the vertex
    All Superinterfaces:
    Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface EdgeDecoder<V>
    extends Serializable

    Interface decoding a set of properties and applying to a given edge.

    Author:
    David B. Bracewell
    • Method Detail

      • decode

        Edge<V> decode​(Edge<V> edge,
                       Map<String,​String> properties)
        Decodes the properties in the Map adding them to the edge as necessary.
        Parameters:
        edge - the edge
        properties - the properties
        Returns:
        the edge with the decoded properties