HOG2
envutil
GraphInconsistencyInstances.h
Go to the documentation of this file.
1
//
2
// GraphInconsistencyInstances.h
3
// Inconsistency
4
//
5
// Created by Nathan Sturtevant on 2/19/19.
6
// Copyright © 2019 NS Software. All rights reserved.
7
//
8
9
#ifndef GraphInconsistencyInstances_h
10
#define GraphInconsistencyInstances_h
11
12
#include <stdio.h>
13
#include "
GraphEnvironment.h
"
14
15
namespace
GraphInconsistencyExamples
{
16
17
const
int
kHeuristic
=
GraphSearchConstants::kTemporaryLabel
;
18
19
class
GraphHeuristic
:
public
Heuristic
<graphState> {
20
public
:
21
GraphHeuristic
(
Graph
*
g
) :
g
(
g
) {}
22
double
HCost
(
const
graphState
&a,
const
graphState
&b)
const
23
{
24
return
g
->
GetNode
(a)->
GetLabelL
(
kHeuristic
);
25
}
26
private
:
27
Graph
*
g
;
28
};
29
30
Graph
*
GetPolyGraph
(
int
N);
31
Graph
*
GetExpoGraphA
(
int
N);
32
Graph
*
GetExpoGraphB
(
int
N);
33
Graph
*
GetWeightedInconsistency
(
float
w,
int
N);
34
}
35
36
#endif
/* GraphInconsistencyInstances_h */
GraphSearchConstants::kTemporaryLabel
@ kTemporaryLabel
Definition:
GraphEnvironment.h:54
graphState
unsigned long graphState
Definition:
GraphEnvironment.h:32
GraphInconsistencyExamples::GraphHeuristic
Definition:
GraphInconsistencyInstances.h:19
Heuristic
Definition:
Heuristic.h:30
Graph
A generic Graph class.
Definition:
Graph.h:66
Graph::GetNode
node * GetNode(unsigned long num)
Definition:
Graph.cpp:152
GraphInconsistencyExamples::kHeuristic
const int kHeuristic
Definition:
GraphInconsistencyInstances.h:17
GraphInconsistencyExamples::GetPolyGraph
Graph * GetPolyGraph(int numExampleNodes)
Definition:
GraphInconsistencyInstances.cpp:15
GraphInconsistencyExamples::GraphHeuristic::g
Graph * g
Definition:
GraphInconsistencyInstances.h:27
GraphInconsistencyExamples::GetExpoGraphA
Graph * GetExpoGraphA(int N)
Definition:
GraphInconsistencyInstances.cpp:117
GraphInconsistencyExamples::GraphHeuristic::HCost
double HCost(const graphState &a, const graphState &b) const
Definition:
GraphInconsistencyInstances.h:22
node::GetLabelL
long GetLabelL(unsigned int index) const
Definition:
Graph.h:220
GraphInconsistencyExamples::GraphHeuristic::GraphHeuristic
GraphHeuristic(Graph *g)
Definition:
GraphInconsistencyInstances.h:21
GraphInconsistencyExamples::GetWeightedInconsistency
Graph * GetWeightedInconsistency(float w, int numExampleNodes)
Definition:
GraphInconsistencyInstances.cpp:129
GraphInconsistencyExamples
Definition:
GraphInconsistencyInstances.cpp:12
GraphInconsistencyExamples::GetExpoGraphB
Graph * GetExpoGraphB(int N)
Definition:
GraphInconsistencyInstances.cpp:123
GraphEnvironment.h
Generated by
1.8.17