Skip to content
Snippets Groups Projects
Commit 176f4182 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

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!11Feature/mpi
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment