]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/DataStructures/Graph.hxx
More on graph editor
[cpPlugins.git] / lib / cpExtensions / DataStructures / Graph.hxx
index 9322977597fdbeed7be3208866e1f13351ad2b03..c567f39dafe16c315623f3d20f20f423df68f1fc 100644 (file)
@@ -73,6 +73,15 @@ EndEdgesRows( ) const
   return( this->m_Matrix.end( ) );
 }
 
+// -------------------------------------------------------------------------
+template< class V, class C, class I >
+void cpExtensions::DataStructures::Graph< V, C, I >::
+Clear( )
+{
+  this->m_Vertices.clear( );
+  this->m_Matrix.clear( );
+}
+
 // -------------------------------------------------------------------------
 template< class V, class C, class I >
 bool cpExtensions::DataStructures::Graph< V, C, I >::