//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
- Graph(){};
- //creates a graph from a SKYLINEARRAY
- Graph(ParaMEDMEM::MEDCouplingSkyLineArray* graph, int* edgeweight=0);
+ Graph();
+ //creates a graph from a SKYLINEARRAY- WARNING!! Graph takes ownership of the array.
+ Graph(MEDCouplingSkyLineArray* graph, int* edgeweight=0);
virtual void partGraph(int ndomain, const std::string& options_string="", ParaDomainSelector *sel=0) = 0;
//returns the partitioning
virtual void partGraph(int ndomain, const std::string& options_string="", ParaDomainSelector *sel=0) = 0;
//returns the partitioning
-
- const ParaMEDMEM::MEDCouplingSkyLineArray *getGraph() const { return _graph; }
- const ParaMEDMEM::MEDCouplingSkyLineArray *getPartition() const { return _partition; }
+
+ const MEDCouplingSkyLineArray *getGraph() const { return (const MEDCouplingSkyLineArray*)_graph; }
+ const MEDCouplingSkyLineArray *getPartition() const { return (const MEDCouplingSkyLineArray*)_partition; }