GraphDom
Toggle main menu visibility
Loading...
Searching...
No Matches
labeled_edge_non_mixed_graph.h
1
/*
2
* Copyright 2026 Michele Comparini
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef GRAPHDOM_LABELED_EDGE_NON_MIXED_GRAPH_IMPL_H
8
#define GRAPHDOM_LABELED_EDGE_NON_MIXED_GRAPH_IMPL_H
9
10
#include "../labeled_edge_non_mixed_graph.h"
11
12
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
13
graphdom::labeled_edge_non_mixed_graph<VertexType,EdgeLabelType,EdgeLabellerType>::labeled_edge_non_mixed_graph() : edges_labeller() {}
14
15
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
16
graphdom::labeled_edge_non_mixed_graph<VertexType,EdgeLabelType,EdgeLabellerType>::labeled_edge_non_mixed_graph(
const
EdgeLabellerType& edge_labeller) : edges_labeller(edge_labeller) {}
17
18
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
19
graphdom::labeled_edge_non_mixed_graph<VertexType,EdgeLabelType,EdgeLabellerType>::labeled_edge_non_mixed_graph(EdgeLabellerType&& edge_labeller) : edges_labeller(std::move(edge_labeller)) {}
20
21
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
22
constexpr
const
EdgeLabellerType& graphdom::labeled_edge_non_mixed_graph<VertexType,EdgeLabelType,EdgeLabellerType>::get_edges_labeller()
const
{
23
return
edges_labeller;
24
}
25
26
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
27
void
graphdom::labeled_edge_non_mixed_graph<VertexType,EdgeLabelType,EdgeLabellerType>::insert_edge
(
28
const
typename
graph<VertexType>::vertex_const_handle
& first_endpoint,
29
const
typename
graph<VertexType>::vertex_const_handle
& second_endpoint) {
30
insert_edge
(first_endpoint,second_endpoint,edges_labeller(first_endpoint,second_endpoint));
31
}
32
33
#endif
//GRAPHDOM_LABELED_EDGE_NON_MIXED_GRAPH_IMPL_H
graphdom::graph::vertex_const_handle
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
graphdom::labeled_edge_non_mixed_graph::insert_edge
void insert_edge(const typename graph< VertexType >::vertex_const_handle &first_endpoint, const typename graph< VertexType >::vertex_const_handle &second_endpoint) final
Definition
labeled_edge_non_mixed_graph.h:27
include
graphdom
impl
labeled_edge_non_mixed_graph.h
Generated by
1.17.0