2015-11-22 02:16:19 +08:00
|
|
|
#pragma once
|
2015-09-13 17:34:17 +08:00
|
|
|
|
|
|
|
#include <list>
|
|
|
|
|
|
|
|
#include "mvcc/atom.hpp"
|
|
|
|
#include "mvcc/store.hpp"
|
2015-10-08 06:58:29 +08:00
|
|
|
#include "mvcc/mvcc_error.hpp"
|
2015-09-13 17:34:17 +08:00
|
|
|
|
|
|
|
#include "vertex.hpp"
|
|
|
|
#include "edge.hpp"
|
|
|
|
|
|
|
|
using VertexStore = mvcc::MvccStore<Vertex>;
|
|
|
|
using EdgeStore = mvcc::MvccStore<Edge>;
|
|
|
|
|
|
|
|
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-09-13 17:34:17 +08:00
|
|
|
VertexStore vertices;
|
|
|
|
EdgeStore edges;
|
|
|
|
};
|