An engine for graph modelling and implementation