"vscode:/vscode.git/clone" did not exist on "f018d4a7ceef437d8fc3ca8b2bba4b7321917e06"
graph_index_test.cc 260 Bytes
Newer Older
Chao Ma's avatar
Chao Ma committed
1
2
/*!
 *  Copyright (c) 2019 by Contributors
3
4
 * @file graph_index_test.cc
 * @brief Test GraphIndex
Chao Ma's avatar
Chao Ma committed
5
 */
VoVAllen's avatar
VoVAllen committed
6
#include <dgl/graph.h>
7
#include <gtest/gtest.h>
VoVAllen's avatar
VoVAllen committed
8

9
TEST(GraphTest, TestNumVertices) {
10
  dgl::Graph g;
VoVAllen's avatar
VoVAllen committed
11
12
13
  g.AddVertices(10);
  ASSERT_EQ(g.NumVertices(), 10);
};