#include </home/runner/work/metall/metall/include/metall/container/experimental/jgraph/jgraph.hpp>
Public Types | |
using | allocator_type = _allocator_type |
using | id_type = std::string_view |
The type of vertex ID and edge ID. | |
using | value_type = mj::value< allocator_type > |
JSON value type every vertex and edge has,. | |
using | vertex_iterator = jgdtl::vertex_iterator_impl< typename vertex_storage_type::iterator > |
Vertex iterator over a container of vertex data, which is metall::container::experimental::json::key_value_pair_type. | |
using | const_vertex_iterator = jgdtl::vertex_iterator_impl< typename vertex_storage_type::const_iterator > |
Const vertex iterator. | |
using | edge_iterator = jgdtl::edge_iterator_impl< typename adj_list_edge_list_type::iterator, typename std::pointer_traits< typename std::allocator_traits< allocator_type >::pointer >::template rebind< edge_storage_type > > |
Edge iterator over a container of edge data, which is metall::container::experimental::json::key_value_pair_type. | |
using | const_edge_iterator = jgdtl::edge_iterator_impl< typename adj_list_edge_list_type::const_iterator, typename std::pointer_traits< typename std::allocator_traits< allocator_type >::pointer >::template rebind< const edge_storage_type > > |
Const edge iterator. | |
using metall::container::experimental::jgraph::jgraph< _allocator_type >::allocator_type = _allocator_type |
using metall::container::experimental::jgraph::jgraph< _allocator_type >::id_type = std::string_view |
The type of vertex ID and edge ID.
using metall::container::experimental::jgraph::jgraph< _allocator_type >::value_type = mj::value<allocator_type> |
JSON value type every vertex and edge has,.
using metall::container::experimental::jgraph::jgraph< _allocator_type >::vertex_iterator = jgdtl::vertex_iterator_impl<typename vertex_storage_type::iterator> |
Vertex iterator over a container of vertex data, which is metall::container::experimental::json::key_value_pair_type.
using metall::container::experimental::jgraph::jgraph< _allocator_type >::const_vertex_iterator = jgdtl::vertex_iterator_impl<typename vertex_storage_type::const_iterator> |
Const vertex iterator.
using metall::container::experimental::jgraph::jgraph< _allocator_type >::edge_iterator = jgdtl::edge_iterator_impl< typename adj_list_edge_list_type::iterator, typename std::pointer_traits<typename std::allocator_traits< allocator_type>::pointer>::template rebind<edge_storage_type> > |
Edge iterator over a container of edge data, which is metall::container::experimental::json::key_value_pair_type.
using metall::container::experimental::jgraph::jgraph< _allocator_type >::const_edge_iterator = jgdtl::edge_iterator_impl< typename adj_list_edge_list_type::const_iterator, typename std::pointer_traits<typename std::allocator_traits< allocator_type>::pointer>::template rebind<const edge_storage_type> > |
Const edge iterator.
|
inlineexplicit |
Constructor.
alloc | An allocator object |
|
inline |
Checks if a vertex exists.
vertex_id | A vertex ID to check. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the number of vertices.
|
inline |
Returns the number of edges.
|
inline |
Returns the degree of the vertex corresponds to 'vid'.
vertex_id | A vertex ID. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |