Blender
V4.3
source
blender
editors
uvedit
uvedit_clipboard_graph_iso.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2019 Stefano Quer
2
* SPDX-FileCopyrightText: 2022 Blender Authors
3
*
4
* SPDX-License-Identifier: GPL-3.0-or-later
5
*
6
* Originally 6846114 from https://github.com/stefanoquer/graphISO/blob/master/v3
7
* graphISO: Tools to compute the Maximum Common Subgraph between two graphs.
8
*/
9
14
#pragma once
15
16
#include "
BLI_sys_types.h
"
17
18
/* A thin representation of a "Graph" in graph theory. */
19
class
GraphISO
{
20
public
:
21
GraphISO
(
int
n
);
22
~GraphISO
();
23
int
n
;
24
uint8_t
**
adjmat
;
25
uint
*
label
;
26
mutable
uint
*
degree
;
27
28
void
add_edge
(
int
v
,
int
w
);
29
GraphISO
*
sort_vertices_by_degree
()
const
;
30
31
private
:
32
void
calculate_degrees()
const
;
33
};
34
40
bool
ED_uvedit_clipboard_maximum_common_subgraph
(
41
GraphISO
*,
GraphISO
*,
int
solution[][2],
int
*solution_length,
bool
*r_search_abandoned);
BLI_sys_types.h
uint
unsigned int uint
Definition
BLI_sys_types.h:68
v
ATTR_WARN_UNUSED_RESULT const BMVert * v
Definition
bmesh_query_inline.hh:17
w
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
Definition
btQuadWord.h:119
GraphISO
Definition
uvedit_clipboard_graph_iso.hh:19
GraphISO::n
int n
Definition
uvedit_clipboard_graph_iso.hh:23
GraphISO::add_edge
void add_edge(int v, int w)
Definition
uvedit_clipboard_graph_iso.cc:61
GraphISO::sort_vertices_by_degree
GraphISO * sort_vertices_by_degree() const
Definition
uvedit_clipboard_graph_iso.cc:99
GraphISO::label
uint * label
Definition
uvedit_clipboard_graph_iso.hh:25
GraphISO::GraphISO
GraphISO(int n)
Definition
uvedit_clipboard_graph_iso.cc:30
GraphISO::~GraphISO
~GraphISO()
Definition
uvedit_clipboard_graph_iso.cc:49
GraphISO::adjmat
uint8_t ** adjmat
Definition
uvedit_clipboard_graph_iso.hh:24
GraphISO::degree
uint * degree
Definition
uvedit_clipboard_graph_iso.hh:26
uint8_t
unsigned char uint8_t
Definition
stdint.h:78
ED_uvedit_clipboard_maximum_common_subgraph
bool ED_uvedit_clipboard_maximum_common_subgraph(GraphISO *, GraphISO *, int solution[][2], int *solution_length, bool *r_search_abandoned)
Definition
uvedit_clipboard_graph_iso.cc:404
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0