Added function to import weight matrix into a NetworkX graph oject