GraphDom
Toggle main menu visibility
Loading...
Searching...
No Matches
labeled_edge_mixed_graph.h
1
/*
2
* Copyright 2026 Michele Comparini
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef GRAPHDOM_LABELED_EDGE_MIXED_GRAPH_IMPL_H
8
#define GRAPHDOM_LABELED_EDGE_MIXED_GRAPH_IMPL_H
9
10
#include "../labeled_edge_mixed_graph.h"
11
12
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
13
graphdom::labeled_edge_mixed_graph<VertexType,EdgeLabelType,EdgeLabellerType>::labeled_edge_mixed_graph() : edges_labeller() {}
14
15
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
16
graphdom::labeled_edge_mixed_graph<VertexType,EdgeLabelType,EdgeLabellerType>::labeled_edge_mixed_graph(
const
EdgeLabellerType& el) : edges_labeller(el) {}
17
18
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
19
graphdom::labeled_edge_mixed_graph<VertexType,EdgeLabelType,EdgeLabellerType>::labeled_edge_mixed_graph(EdgeLabellerType&& el) : edges_labeller(std::move(el)) {}
20
21
template
<
typename
VertexType,
typename
EdgeLabelType,
typename
EdgeLabellerType>
22
constexpr
const
EdgeLabellerType& graphdom::labeled_edge_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_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
edge_type
et) {
31
insert_edge
(first_endpoint,second_endpoint,et,edges_labeller(first_endpoint,second_endpoint,et));
32
}
33
34
#endif
//GRAPHDOM_LABELED_EDGE_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_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, edge_type et) final
Definition
labeled_edge_mixed_graph.h:27
graphdom::edge_type
edge_type
The enumerated type whose values represent the two types of edges of a graph.
Definition
graph.h:21
include
graphdom
impl
labeled_edge_mixed_graph.h
Generated by
1.17.0