2015-07-07 22:18:26 +08:00
|
|
|
#ifndef MEMGRAPH_DATA_MODEL_EDGE_HPP
|
|
|
|
#define MEMGRAPH_DATA_MODEL_EDGE_HPP
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "record.hpp"
|
|
|
|
|
|
|
|
struct Vertex;
|
|
|
|
|
2015-07-31 18:31:08 +08:00
|
|
|
struct Edge : public Record<Edge>
|
2015-07-07 22:18:26 +08:00
|
|
|
{
|
2015-07-31 18:31:08 +08:00
|
|
|
Edge(uint64_t id) : Record<Edge>(id) {}
|
2015-07-07 22:18:26 +08:00
|
|
|
|
|
|
|
// pointer to the vertex this edge points to
|
2015-07-31 18:31:08 +08:00
|
|
|
Vertex* to;
|
2015-07-07 22:18:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|