diff --git a/lib/common/graph.js b/lib/common/graph.js index 454b53b..ed17623 100644 --- a/lib/common/graph.js +++ b/lib/common/graph.js @@ -182,10 +182,6 @@ class ConcertoGraphVisitor extends DiagramVisitor { if (classDeclaration.getSuperType()){ parameters.graph.addEdge(classDeclaration.getFullyQualifiedName(), classDeclaration.getSuperType()); - // this "if" block adds the types that extend the Super type - if(!parameters.createDependencyGraph && classDeclaration.getSuperType() !== 'concerto@1.0.0.Concept') { - parameters.graph.addVertex(classDeclaration.getSuperType()); - } } super.visitClassDeclaration(classDeclaration, parameters); } diff --git a/test/common/__snapshots__/graph.js.snap b/test/common/__snapshots__/graph.js.snap index bb19422..52bd312 100644 --- a/test/common/__snapshots__/graph.js.snap +++ b/test/common/__snapshots__/graph.js.snap @@ -23,7 +23,6 @@ exports[`graph #visitor should visit a model manager 1`] = ` \`org.acme.hr@1.0.0.pii\` \`org.acme.hr@1.0.0.pii\` --> \`concerto.decorator@1.0.0.Decorator\` \`org.acme.hr@1.0.0.pii\` --> \`org.acme.hr@1.0.0.Category\` - \`concerto.decorator@1.0.0.Decorator\` \`org.acme.hr@1.0.0.Category\` \`org.acme.hr@1.0.0.Category\` --> \`concerto@1.0.0.Concept\` \`org.acme.hr@1.0.0.Info\` @@ -64,7 +63,6 @@ exports[`graph #visitor should visit a model manager 1`] = ` \`org.acme.hr@1.0.0.Department\` --> \`org.acme.hr.base@1.0.0.GeneralCategory\` \`org.acme.hr@1.0.0.Equipment\` \`org.acme.hr@1.0.0.Equipment\` --> \`concerto@1.0.0.Asset\` - \`concerto@1.0.0.Asset\` \`org.acme.hr@1.0.0.LaptopMake\` \`org.acme.hr@1.0.0.LaptopMake\` --> \`concerto@1.0.0.Concept\` \`org.acme.hr@1.0.0.Laptop\` @@ -75,7 +73,6 @@ exports[`graph #visitor should visit a model manager 1`] = ` \`org.acme.hr@1.0.0.Person\` --> \`org.acme.hr.base@1.0.0.Address\` \`org.acme.hr@1.0.0.Person\` --> \`org.acme.hr.base@1.0.0.SSN\` \`org.acme.hr@1.0.0.Person\` --> \`org.acme.hr@1.0.0.NextOfKin\` - \`concerto@1.0.0.Participant\` \`org.acme.hr@1.0.0.Employee\` \`org.acme.hr@1.0.0.Employee\` --> \`org.acme.hr@1.0.0.Person\` \`org.acme.hr@1.0.0.Employee\` --> \`org.acme.hr@1.0.0.Department\` @@ -92,7 +89,6 @@ exports[`graph #visitor should visit a model manager 1`] = ` \`org.acme.hr@1.0.0.Manager\` --> \`org.acme.hr@1.0.0.Person\` \`org.acme.hr@1.0.0.CompanyEvent\` \`org.acme.hr@1.0.0.CompanyEvent\` --> \`concerto@1.0.0.Event\` - \`concerto@1.0.0.Event\` \`org.acme.hr@1.0.0.Onboarded\` \`org.acme.hr@1.0.0.Onboarded\` --> \`org.acme.hr@1.0.0.CompanyEvent\` \`org.acme.hr@1.0.0.Onboarded\` --> \`org.acme.hr@1.0.0.Employee\` @@ -100,7 +96,6 @@ exports[`graph #visitor should visit a model manager 1`] = ` \`org.acme.hr@1.0.0.ChangeOfAddress\` --> \`concerto@1.0.0.Transaction\` \`org.acme.hr@1.0.0.ChangeOfAddress\` --> \`org.acme.hr@1.0.0.Person\` \`org.acme.hr@1.0.0.ChangeOfAddress\` --> \`org.acme.hr.base@1.0.0.Address\` - \`concerto@1.0.0.Transaction\` \`org.acme.hr@1.0.0.KinName\` \`org.acme.hr@1.0.0.KinName\` --> \`org.acme.hr.base@1.0.0.GeneralCategory\` \`org.acme.hr@1.0.0.KinTelephone\` @@ -233,12 +228,10 @@ exports[`graph #visitor should visit find a connected subgraph 1`] = ` \`org.acme.hr@1.0.0.Person\` --> \`org.acme.hr.base@1.0.0.Address\` \`org.acme.hr@1.0.0.Person\` --> \`org.acme.hr.base@1.0.0.SSN\` \`org.acme.hr@1.0.0.Person\` --> \`org.acme.hr@1.0.0.NextOfKin\` - \`concerto@1.0.0.Participant\` \`org.acme.hr@1.0.0.ChangeOfAddress\` \`org.acme.hr@1.0.0.ChangeOfAddress\` --> \`concerto@1.0.0.Transaction\` \`org.acme.hr@1.0.0.ChangeOfAddress\` --> \`org.acme.hr@1.0.0.Person\` \`org.acme.hr@1.0.0.ChangeOfAddress\` --> \`org.acme.hr.base@1.0.0.Address\` - \`concerto@1.0.0.Transaction\` \`org.acme.hr@1.0.0.KinName\` \`org.acme.hr@1.0.0.KinName\` --> \`org.acme.hr.base@1.0.0.GeneralCategory\` \`org.acme.hr@1.0.0.KinTelephone\`