Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psco-2019-gp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Julian Scherzer
psco-2019-gp
Commits
51ebb0db
Commit
51ebb0db
authored
5 years ago
by
p-hamann
Browse files
Options
Downloads
Patches
Plain Diff
Update style of graph and partition datastructures
parent
70358d56
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gp-bnb/graph.hpp
+2
-0
2 additions, 0 deletions
include/gp-bnb/graph.hpp
include/gp-bnb/partition.hpp
+4
-0
4 additions, 0 deletions
include/gp-bnb/partition.hpp
with
6 additions
and
0 deletions
include/gp-bnb/graph.hpp
+
2
−
0
View file @
51ebb0db
...
...
@@ -12,10 +12,12 @@ public:
* @param Adjacency lists
*/
graph
(
std
::
vector
<
std
::
vector
<
unsigned
int
>>
a
);
/** @brief Returns the number of vertices of the graph
* @return Number of vertices
*/
unsigned
int
num_vertices
()
const
;
/** @brief Provides access to the adjacency of a vertex
* @param Vertex Id
* @return Adjacency of the vertex
...
...
This diff is collapsed.
Click to expand it.
include/gp-bnb/partition.hpp
+
4
−
0
View file @
51ebb0db
...
...
@@ -11,20 +11,24 @@ using vertex_id = unsigned int;
class
partition
{
public:
enum
subgraph
{
sg_a
=
-
1
,
sg_b
=
1
,
none
=
0
};
/** @brief Initializes an empty partition
* @param Pointer to the graph to be partitioned
*/
partition
(
graph
*
g
);
/** @brief Returns the number of vertices of an element of the partition
* @param Subgraph A, B or none
* @return Number of vertices of sg
*/
unsigned
int
num_vertices
(
subgraph
sg
);
/** @brief Assigns a vertex to a subgraph
* @param Vertex Id
* @param Subgraph A or B
*/
void
assign_vertex
(
vertex_id
v
,
subgraph
sg
);
/** @brief Reverts the assignment of a vertex to a subgraph
* @param Vertex Id
*/
...
...
This diff is collapsed.
Click to expand it.
Patrick Hamann
@hamannpa
mentioned in commit
70358d56
·
5 years ago
mentioned in commit
70358d56
mentioned in commit 70358d5623804532f85b3a06cbe1d8bbdcc65fa6
Toggle commit list
Preview
0%
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