2015-11-22 02:16:19 +08:00
|
|
|
#pragma once
|
2015-09-13 17:34:17 +08:00
|
|
|
|
2015-12-09 03:49:45 +08:00
|
|
|
#include "storage/vertex_store.hpp"
|
2015-12-08 05:43:54 +08:00
|
|
|
#include "data_structures/skiplist/skiplist.hpp"
|
2015-09-13 17:34:17 +08:00
|
|
|
#include "edge.hpp"
|
|
|
|
|
2015-12-08 05:43:54 +08:00
|
|
|
using EdgeStore = SkipList<uint64_t, EdgeRecord::uptr>;
|
2015-09-13 17:34:17 +08:00
|
|
|
|
|
|
|
class Graph
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Graph() {}
|
|
|
|
|
2015-12-08 04:51:55 +08:00
|
|
|
// TODO: connect method
|
|
|
|
// procedure:
|
|
|
|
// 1. acquire unique over first node
|
|
|
|
// 2. acquire unique over second node
|
|
|
|
// 3. add edge
|
|
|
|
|
|
|
|
// TODO: find vertex by Id
|
2015-11-07 18:31:36 +08:00
|
|
|
|
2015-12-09 03:49:45 +08:00
|
|
|
VertexStore vertex_store;
|
2015-09-13 17:34:17 +08:00
|
|
|
EdgeStore edges;
|
|
|
|
};
|