Interface EdgeEncoder<V>

  • Type Parameters:
    V - the vertex type
    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 EdgeEncoder<V>
    extends Serializable

    Encodes an edge into a series of properties. For example, an edge weight would be encoded with a key of weight with a string representation of the value.

    Author:
    David B. Bracewell
    • Method Detail

      • encode

        Map<String,​String> encode​(Edge<V> edge)
        Encodes the properties of an endge into map.
        Parameters:
        edge - the edge
        Returns:
        the properties