Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
176f4182
Commit
176f4182
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add simple CSR graph class
It is defined in view of ParMETIS use
parent
93b1e016
No related branches found
No related tags found
1 merge request
!11
Feature/mpi
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils/CSRGraph.hpp
+40
-0
40 additions, 0 deletions
src/utils/CSRGraph.hpp
with
40 additions
and
0 deletions
src/utils/CSRGraph.hpp
0 → 100644
+
40
−
0
View file @
176f4182
#ifndef CSR_GRAPH_HPP
#define CSR_GRAPH_HPP
#include
<Array.hpp>
class
CSRGraph
{
private:
Array
<
int
>
m_entries
;
Array
<
int
>
m_neighbors
;
public:
const
Array
<
int
>&
entries
()
const
{
return
m_entries
;
}
const
Array
<
int
>&
neighbors
()
const
{
return
m_neighbors
;
}
CSRGraph
&
operator
=
(
CSRGraph
&&
)
=
default
;
CSRGraph
&
operator
=
(
const
CSRGraph
&
)
=
default
;
CSRGraph
(
Array
<
int
>
entries
,
Array
<
int
>
neighbors
)
:
m_entries
(
entries
),
m_neighbors
(
neighbors
)
{
;
}
CSRGraph
()
=
default
;
CSRGraph
(
CSRGraph
&&
)
=
default
;
CSRGraph
(
const
CSRGraph
&
)
=
default
;
~
CSRGraph
()
=
default
;
};
#endif // CSR_GRAPH_HPP
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