GraphDom
Loading...
Searching...
No Matches
graph.h
1/*
2 * Copyright 2026 Michele Comparini
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef GRAPHDOM_GRAPH_IMPL_H
8#define GRAPHDOM_GRAPH_IMPL_H
9
10#include "../graph.h"
11
12template<typename VertexType>
14 const graphdom::graph<VertexType>* const graph_ptr,
15 const graphdom::graph<VertexType>::non_mixed_graph_vertex_container<const vertex_container*>& vertex_container_reference,
16 const graphdom::edge_type non_mixed_graph_type) {
18 graph_ptr,
20 &vertex_container_reference
21 );
22}
23
24template<typename VertexType>
26 const graphdom::graph<VertexType>* const graph_ptr,
27 const graphdom::graph<VertexType>::mixed_graph_vertex_container<const vertex_container*>& vertex_container_reference) {
29 graph_ptr,
31 &vertex_container_reference
32 );
33}
34
35template<typename VertexType>
37 const graphdom::graph<VertexType>* const graph_ptr,
38 const graphdom::graph<VertexType>::non_mixed_graph_vertex_container<const vertex_container*>& vertex_container_reference,
39 const graphdom::edge_type non_mixed_graph_type) {
41 graph_ptr,
43 &vertex_container_reference
44 );
45}
46
47template<typename VertexType>
49 const graphdom::graph<VertexType>* const graph_ptr,
50 const graphdom::graph<VertexType>::mixed_graph_vertex_container<const vertex_container*>& vertex_container_reference) {
52 graph_ptr,
54 &vertex_container_reference
55 );
56}
57
58template<typename VertexType>
61 return ptr.vertex_container_owner_graph_pointer;
62}
63
64template<typename VertexType>
65const typename graphdom::graph<VertexType>::vertex_container* graphdom::graph<VertexType>::get_vertex_container(
67 return ptr.vertex_container_pointer;
68}
69
70template<typename VertexType>
73 return const_edge_itr.iterator_owner_graph;
74}
75
76template<typename VertexType>
77const typename graphdom::graph<VertexType>::vertex_container* graphdom::graph<VertexType>::get_begin_point(
79 return const_edge_itr.edge_begin_point_vertex_container;
80}
81
82#endif //GRAPHDOM_GRAPH_IMPL_H
Every valid instance of this class can be used to identify a specific vertex of a graph and to access...
Definition vertex_const_handle.h:35
Every valid instance of this class can be used to identify a specific vertex of a graph and to access...
Definition vertex_handle.h:32
Every graph created using this library is an instance of a concrete class publicly derived,...
Definition graph.h:43
edge_type
The enumerated type whose values represent the two types of edges of a graph.
Definition graph.h:21
@ undirected
This enum value means undirected edge.
Definition graph.h:22