dmlc--dgl
67cb7a43a0
* Deprecate multi-graph * Handle heterograph and edge_ids * lint * Fix * Remove multigraph in C++ end * Fix lint * Add some test and fix something * Fix * Fix * upd * Fix some test case * Fix * Fix Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal> Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com> Co-authored-by: Minjie Wang <wmjlyjemaine@gmail.com>
14 行
259 B
C++
14 行
259 B
C++
/*!
|
|
* Copyright (c) 2019 by Contributors
|
|
* \file graph_index_test.cc
|
|
* \brief Test GraphIndex
|
|
*/
|
|
#include <gtest/gtest.h>
|
|
#include <dgl/graph.h>
|
|
|
|
TEST(GraphTest, TestNumVertices){
|
|
dgl::Graph g;
|
|
g.AddVertices(10);
|
|
ASSERT_EQ(g.NumVertices(), 10);
|
|
};
|