| 138 | } |
| 139 | |
| 140 | void test_clone( const geode::Graph& graph ) |
| 141 | { |
| 142 | const auto graph_clone = graph.clone(); |
| 143 | geode::OpenGeodeGraph graph2{ std::move( |
| 144 | *dynamic_cast< geode::OpenGeodeGraph* >( graph_clone.get() ) ) }; |
| 145 | geode::OpenGeodeMeshException::test( |
| 146 | graph2.nb_vertices() == 4, "Graph2 should have 4 vertices" ); |
| 147 | geode::OpenGeodeMeshException::test( |
| 148 | graph2.nb_edges() == 2, "Graph2 should have2 edge2" ); |
| 149 | } |
| 150 | |
| 151 | void test_delete_isolated_vertices( |
| 152 | const geode::Graph& graph, geode::GraphBuilder& builder ) |