#ifndef MEMGRAPH_STORAGE_VERTEX_HPP #define MEMGRAPH_STORAGE_VERTEX_HPP #include #include "model/properties/jsonwriter.hpp" #include "model/record.hpp" #include "edge.hpp" struct Vertex : public Record { std::vector in; std::vector out; }; inline std::ostream& operator<<(std::ostream& stream, Vertex& record) { StringBuffer buffer; JsonWriter writer(buffer); // dump properties in this buffer record.properties.accept(writer); writer.finish(); return stream << "Vertex" << "(xmin = " << record.tx.min() << ", xmax = " << record.tx.max() << "): " << buffer.str(); } #endif