graph_index_test.cc 287 Bytes
Newer Older
Chao Ma's avatar
Chao Ma committed
1
2
3
4
5
/*!
 *  Copyright (c) 2019 by Contributors
 * \file msg_queue.cc
 * \brief Message queue for DGL distributed training.
 */
VoVAllen's avatar
VoVAllen committed
6
7
8
9
10
11
12
13
#include <gtest/gtest.h>
#include <dgl/graph.h>

TEST(GraphTest, TestNumVertices){
  dgl::Graph g(false);
  g.AddVertices(10);
  ASSERT_EQ(g.NumVertices(), 10);
};