Database Reference
In-Depth Information
With these examples behind us, you have a good overview of how graph databases
such as Neo4j can help with impact analysis systems . Now, we will explore another
type of scenario that is related to this domain: impact simulation .
Impact simulation in a Cost Calculation
environment
As discussed previously, the second impact-related use case that we would like to
address in this chapter is the one that simulates the impact of a certain change to the
network on the rest of the network. It basically addresses the "what if" question: how
willwebeimpactedifacertainchangeoccursinthenetwork?Whatwouldbethe
optimalscenarioifweweretochangecertainparametersinthegraphstructure?
The example that we will be using in this section uses a very common data structure
that you may have seen in many different other use cases: a hierarchy or tree. During
the course of this section, we will run through the different parts of tree structure
and see what the impact of changes in the tree would be on the rest of the tree.
Modeling your product hierarchy as a graph
The use case that we are exploring uses a hypothetical dataset representing
a product hierarchy. This is very common in many manufacturing and
construction environments:
• A product is composed of a number of cost groups
• A cost group is composed of a number of cost types
• A cost type is composed of a number of cost subtypes
• A cost subtype is composed of costs
• Andinally,costswillbecomposedofcomponents
Thelowestpartofthehierarchystructure,thecomponents,willhaveaspeciicprice.
On my blog ( http://blog.bruggen.com/2014/03/using-neo4j-to-manage-and
-calculate.html ), I have shown how you can create a sample dataset like this
prettyeasily.Themodelwillbesimilartotheoneshowninthefollowingigure:
 
Search WWH ::




Custom Search