public void Dispose() { if (matrix == null) { return; } DllImporter.igraph_matrix_destroy(matrix); matrix = null; GC.SuppressFinalize(this); }