Neural Networks implemented with graph-tool