54#ifndef __ADS_EliasFanoGraph
55 #define __ADS_EliasFanoGraph
112 const std::vector< std::vector< std::size_t > > & a );
115 [[nodiscard]] std::size_t
order(
void )
const;
118 [[nodiscard]] std::size_t
edges(
void )
const;
123 [[nodiscard]] std::size_t
outdegree( std::size_t u )
const;
128 [[nodiscard]] std::size_t
successor( std::size_t u , std::size_t i )
const;
132 [[nodiscard]] std::vector< std::size_t >
successors( std::size_t u )
const;
137 [[nodiscard]]
bool hasEdge( std::size_t u , std::size_t v )
const;
170#include "ADS/succinct/impl/EliasFanoGraph.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The Elias-Fano representation of a non-decreasing sequence of integers in (chapters 11,...
std::vector< std::size_t > successors(std::size_t u) const
the successors of , in increasing order, by successor()
std::size_t successor(std::size_t u, std::size_t i) const
the -th successor of , from 0, i.e.,
static constexpr std::string_view persistName
the name of the structure in a file [see Persistence.h]
Definition EliasFanoGraph.h:145
std::size_t order(void) const
the number of nodes,
std::size_t edges(void) const
the number of edges,
std::size_t sizeInBits(void) const
the bits of the two sequences, with their directories
EliasFanoGraph(void)=default
the graph with no node
std::size_t outdegree(std::size_t u) const
the number of successors of ,
EliasFanoGraph(const std::vector< std::vector< std::size_t > > &a)
the graph of the adjacency lists , the node having the successors
bool hasEdge(std::size_t u, std::size_t v) const
whether is an edge, i.e., whether is in the sequence of the edges
void persist(A &a)
the members written to, or read from, the archive [see Persistence.h]
BasicEliasFano< false > EliasFano
Elias-Fano with the inventories of built in the constructor, the fastest access() and nextGEQ().
Definition EliasFano.h:291