Skip to content

Commit

Permalink
fixup! support creation of new vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerzinn committed Apr 1, 2024
1 parent 5e1517e commit 811e004
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libgalois/include/galois/graphs/LS_LC_CSR_Graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ class LS_LC_CSR_Graph : private boost::noncopyable {
public:
LS_LC_CSR_Graph(uint64_t num_vertices)
: m_vertices(num_vertices, VertexMetadata()) {
if constexpr (HasVertexData) {
m_vertex_data.allocateBlocked(num_vertices);
}
}
if constexpr (HasVertexData) {
m_vertex_data.resize(num_vertices);
}
}

inline uint64_t size() const noexcept { return m_vertices.size(); }

Expand Down

0 comments on commit 811e004

Please sign in to comment.