Interface EdgeEncoder<V>

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

    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.

    David B. Bracewell
    • Method Detail

      • encode

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