malloc array added
5 is not edge count but vertex count
malloc array added
5 is not edge count but vertex count