项目文件夹

文件
xiang song(charlie.song) 67cb7a43a0 [Feature] Deprecate multigraph (#1389)
* 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>
2020-03-28 21:31:24 +08:00

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);
};