class AbstractGraphConverter implements GraphConverter {

    @Override
    public EdgeEntity toEdgeEntity(Edge edge) {
        requireNonNull(edge, "vertex is required");
        Object out = toEntity(edge.outVertex());
        Object in = toEntity(edge.inVertex());
        return EdgeEntity.of(out, edge, in);
    }

}