Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
Discrete Optimization Library
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bachelorarbeit
Discrete Optimization Library
Commits
4f35f342
Commit
4f35f342
authored
Oct 06, 2020
by
Jonas Seidel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preemtive push
parent
340c2803
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Graphtheory/Basic_Graph.h
Graphtheory/Basic_Graph.h
+1
-1
Graphtheory/Basic_Graph_special_members_and_operators.ipp
Graphtheory/Basic_Graph_special_members_and_operators.ipp
+1
-1
maintenance_problem_test.cpp
maintenance_problem_test.cpp
+1
-1
No files found.
Graphtheory/Basic_Graph.h
View file @
4f35f342
...
...
@@ -69,7 +69,7 @@ public:
void
conditional_bfs_all_components
(
std
::
function
<
void
(
Node
<
N
,
E
>*
from
,
Edge
<
N
,
E
>*
via
,
bool
used_in_traversal
)
>
edge_exec
,
std
::
function
<
bool
(
Edge
<
N
,
E
>*
via
,
Node
<
N
,
E
>*
node
)
>
node_exec
,
std
::
deque
<
Node
<
N
,
E
>*>
starting_nodes
=
{},
bool
all_paths
=
false
,
std
::
function
<
bool
(
Node
<
N
,
E
>*
from
,
Edge
<
N
,
E
>*
via
)
>
guide
=
[](
Node
<
N
,
E
>*
n
,
Edge
<
N
,
E
>*
e
)
->
bool
{
return
e
->
from
()
==
n
;});
// _special_members_and_operators:
void
operator
=
(
Graph
<
N
,
E
>&
graph
);
void
operator
=
(
const
Graph
<
N
,
E
>&
graph
);
void
operator
=
(
Graph
<
N
,
E
>&&
graph
);
};
...
...
Graphtheory/Basic_Graph_special_members_and_operators.ipp
View file @
4f35f342
...
...
@@ -14,7 +14,7 @@ Graph<N,E>::Graph(Graph<N,E>&& graph)
}
template <typename N, typename E>
void Graph<N,E>::operator=(Graph<N,E>& graph){
void Graph<N,E>::operator=(
const
Graph<N,E>& graph){
std::map<Node<N,E>*, Node<N,E>*> node_lookup;
for(Node<N,E>* node : graph._nodes){
...
...
maintenance_problem_test.cpp
View file @
4f35f342
...
...
@@ -12,7 +12,7 @@ int main(){
{{
Flow
,
Attribute
(
max
,
0
)},
{
Demand
,
Attribute
(
fix
,
0
)},
{
Capacity
,
Attribute
(
fix
,
1
)},
{
Critical
,
Attribute
(
fix
,
0
)}},
{},
4
,
random_attribute_generator
<
CircSelectEdgeFields
>
({
{
Capacity
,
{
Integral
,
0
,
5
}}
}),
random_attribute_generator
<
CircSelectEdgeFields
>
({
{
Capacity
,
{
Integral
,
1
,
5
}}
}),
4
,
random_attribute_generator
<
CircSelectNodeFields
>
({})
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment