26 lines
472 B
C++
26 lines
472 B
C++
#pragma once
|
|
|
|
#include "storage/record_accessor.hpp"
|
|
#include "storage/vertex.hpp"
|
|
|
|
class Vertices;
|
|
|
|
class Vertex::Accessor
|
|
: public RecordAccessor<Vertex, Vertices, Vertex::Accessor>
|
|
{
|
|
public:
|
|
using RecordAccessor::RecordAccessor;
|
|
|
|
size_t out_degree() const;
|
|
|
|
size_t in_degree() const;
|
|
|
|
size_t degree() const;
|
|
|
|
void add_label(const Label &label);
|
|
|
|
bool has_label(const Label &label) const;
|
|
|
|
const std::set<label_ref_t>& labels() const;
|
|
};
|