X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d30c9cf675ad7141d1c8e31d2e72315267d45cf2..f311fbc3e1436bf248c54225f0743cfa671c4bd7:/Graph.cpp?ds=inline diff --git a/Graph.cpp b/Graph.cpp index 1c87123..8cd0f99 100644 --- a/Graph.cpp +++ b/Graph.cpp @@ -29,3 +29,13 @@ FunctionalBlock* Graph::addFunctionalBlock(GroupBlock* group, ReferenceBlock* re return newBlock; } + +bool Graph::removeFunctionalBlock(FunctionalBlock* block, GroupBlock *group) { + group->removeBlock(block); +} + +bool Graph::removeGroupBlock(GroupBlock *group) { + group->removeAllBlocks(); + GroupBlock* parent = AB_TO_GRP(group->getParent()); + parent->removeBlock(group); +}