Blender V4.3
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. */
19class GraphISO {
20 public:
21 GraphISO(int n);
22 ~GraphISO();
23 int n;
26 mutable uint *degree;
27
28 void add_edge(int v, int w);
30
31 private:
32 void calculate_degrees() const;
33};
34
41 GraphISO *, GraphISO *, int solution[][2], int *solution_length, bool *r_search_abandoned);
unsigned int uint
ATTR_WARN_UNUSED_RESULT const BMVert * v
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
Definition btQuadWord.h:119
void add_edge(int v, int w)
GraphISO * sort_vertices_by_degree() const
unsigned char uint8_t
Definition stdint.h:78
bool ED_uvedit_clipboard_maximum_common_subgraph(GraphISO *, GraphISO *, int solution[][2], int *solution_length, bool *r_search_abandoned)