Javascript based interface for building graph-based dynamic models