X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..107509468a60f3e9e698d82a2575b700d9dde07e:/Graph.cpp 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); +}