construct graph script for nell