Add function returning nodes list
Remove the import of graph_tool
Add new test for function nodes