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