Dealing with Graphs by Neural Networks