I am new in Blockchain and keep learning and experimenting with Ethereum and Solidity. Yet my knowledge is not enough to know whether the following scenario can be implemented with Ethereum. The scenario is as follows:
We have some graphs stored in a database. Each graph consists of nodes and edges. We want to store the graphs in Ethereum, to check if a graph has been changed. Lets assume every block contain one graph. We could check if a graph has changed, by comparing the hash of the graph with the previous version in the blockchain. Would this work? Does the hash of a block only depends on the stored data, e.g. the graph?