Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ptSpar
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gianluca Rossi
ptSpar
Commits
68e23a88
Commit
68e23a88
authored
1 year ago
by
Abd Errahmane Kiouche
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
56a37278
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
(p,t)_sparsification/p_k_compression.h
+57
-0
57 additions, 0 deletions
(p,t)_sparsification/p_k_compression.h
with
57 additions
and
0 deletions
(p,t)_sparsification/p_k_compression.h
0 → 100644
+
57
−
0
View file @
68e23a88
//
// Created by Kiouche on 1/20/2020.
//
#ifndef P_K_COMPRESSION_P_K_COMPRESSION_H
#define P_K_COMPRESSION_P_K_COMPRESSION_H
#include
"graph.h"
namespace
std
{
bool
check_constraints
(
graph
&
original_graph
,
graph
&
compressed_graph
,
vector
<
double
>
p
,
int
k
);
bool
BFS
(
uint32_t
node
,
graph
&
g
,
graph
&
constructed_graph
,
vector
<
double
>
&
p
,
int
&
maxDepth
);
bool
test_insert
(
edge
&
e
,
bool
directed
,
graph
&
constructed_graph
,
graph
&
compressed_graph
,
int
k
,
vector
<
double
>
&
p
);
graph
compress_graph_LP
(
graph
&
initial_graph
,
unordered_map
<
edge
,
double
>
edges_scores
,
int
k
,
vector
<
double
>
p
,
bool
directed
);
void
get_neighbors
(
uint32_t
node
,
graph
&
g
,
unordered_map
<
int
,
unordered_set
<
uint32_t
>>
&
neighbors
,
int
&
maxDepth
);
graph
Greedy_compression
(
graph
&
initial_graph
,
unordered_map
<
edge
,
double
>
edges_scores
,
int
k
,
vector
<
double
>
p
,
bool
directed
);
graph
compress_graph_basic
(
graph
&
initial_graph
,
int
k
,
vector
<
double
>
p
,
bool
directed
);
graph
random_compression_graph
(
graph
&
initial_graph
,
bool
directed
);
vector
<
edge
>
perturbate_solution
(
vector
<
edge
>
&
s
);
graph
Simulated_annealing
(
int
max_iterations
,
double
initial_temperature
,
double
decrease_factor
,
graph
&
initial_graph
,
bool
directed
,
int
k
,
vector
<
double
>
p
);
tuple
<
double
,
graph
>
evaluate_permutation
(
vector
<
edge
>
&
permutation
,
bool
directed
,
vector
<
double
>
&
p
,
int
k
,
graph
&
g
);
graph
compress_graph_greedy
(
graph
&
initial_graph
,
int
k
,
vector
<
double
>
p
,
bool
directed
);
unordered_set
<
uint32_t
>
neighbors
(
graph
&
g
,
int
max_depth
,
uint32_t
u
,
uint32_t
v
);
vector
<
edge
>
greedy_edges_order
(
graph
&
g
,
bool
directed
,
int
k
);
}
#endif //P_K_COMPRESSION_P_K_COMPRESSION_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment