BF: fix copy-paste error; properly test for presence of networkx