added matplotlib and networkX