Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
blob
main
examples
external_packages
clvisc_wrapper
googletest
gtl
include
GTL
algorithm.h
bellman_ford.h
bfs.h
biconnectivity.h
bid_dijkstra.h
bin_heap.h
components.h
debug.h
dfs.h
dijkstra.h
edge.h
edge_data.h
edge_map.h
embedding.h
fm_partition.h
gml_parser.h
gml_scanner.h
graph.h
GTL.h
maxflow_ff.h
maxflow_pp.h
maxflow_sap.h
min_tree.h
ne_map.h
node.h
node_data.h
node_map.h
planarity.h
pq_node.h
pq_tree.h
ratio_cut_partition.h
st_number.h
symlist.h
topsort.h
version.h
src
tests
hydro_from_external_file
trento
cornelius.cpp
cornelius.h
fjcore.cc
fjcore.hh
gzstream.cc
gzstream.h
sigslot.h
tinyxml2.cc
tinyxml2.h
jail
src
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
min_tree.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file min_tree.h
1
/* This software is distributed under the GNU Lesser General Public License */
2
//==========================================================================
3
//
4
// min_tree.cpp
5
//
6
//==========================================================================
7
// $Id: min_tree.h,v 1.3 2001/06/21 10:55:08 chris Exp $
8
9
#ifndef GTL_MIN_TREE_H
10
#define GTL_MIN_TREE_H
11
12
#include <
GTL/GTL.h
>
13
#include <
GTL/algorithm.h
>
14
#include <
GTL/edge_map.h
>
15
#include <set>
16
17
__GTL_BEGIN_NAMESPACE
18
25
class
min_tree
:
public
algorithm
{
26
27
public
:
28
32
min_tree
();
33
37
virtual
~min_tree
() {};
38
54
int
check
(
graph
&
g
);
55
56
int
run
(
graph
&
g
);
57
58
virtual
void
reset
();
59
68
void
set_distances
(
const
edge_map<int>
&
dist
);
69
77
set<edge>
get_min_tree
();
78
84
int
get_min_tree_length
();
85
86
private
:
87
typedef
pair<int, node::adj_edges_iterator>
TSP_A_VALUE
;
88
89
class
input_comp
{
90
public
:
91
bool
operator()
(
TSP_A_VALUE
x
,
TSP_A_VALUE
y
)
92
{
return
x.first > y.first;}
93
};
94
95
edge_map<int>
dist
;
96
int
weight
;
97
set<edge>
tree
;
98
bool
is_set_distances
;
99
};
100
101
__GTL_END_NAMESPACE
102
103
#endif // GTL_MIN_TREE_H
104
105
106
107
108
JETSCAPE
blob
main
external_packages
gtl
include
GTL
min_tree.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:23
using
1.8.2 with
sPHENIX GitHub integration